Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
a77cd1a8
Commit
a77cd1a8
authored
19 years ago
by
dkirov
Browse files
Options
Downloads
Patches
Plain Diff
gettext support in gajim-remote needs i18n in
its path
parent
875a875a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/i18n.py
+41
-0
41 additions, 0 deletions
scripts/i18n.py
with
41 additions
and
0 deletions
scripts/i18n.py
0 → 100644
+
41
−
0
View file @
a77cd1a8
## common/i18n.py
##
## Gajim Team:
## - Yann Le Boulanger <asterix@lagaule.org>
## - Vincent Hanquez <tab@snarc.org>
## - Nikos Kouremenos <kourem@gmail.com>
## - Dimitur Kirov <dkirov@gmail.com>
##
## Copyright (C) 2003-2005 Gajim Team
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
APP
=
'
gajim
'
DIR
=
'
../po
'
import
locale
import
gettext
locale
.
setlocale
(
locale
.
LC_ALL
,
''
)
_translation
=
None
def
init
():
global
_translation
try
:
_translation
=
gettext
.
translation
(
APP
,
DIR
)
except
IOError
:
_translation
=
gettext
.
NullTranslations
()
def
_
(
s
):
if
s
==
''
:
return
s
assert
s
return
_translation
.
gettext
(
s
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment