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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Peter Shkenev
gajim
Commits
9c0876ec
Commit
9c0876ec
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
put gajim-remote.py in src/ so we cna use one 18n.py
parent
73bd6501
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+7
-9
7 additions, 9 deletions
Makefile
scripts/gajim-remote
+3
-3
3 additions, 3 deletions
scripts/gajim-remote
scripts/gajim-remote.py
+1
-1
1 addition, 1 deletion
scripts/gajim-remote.py
scripts/i18n.py
+0
-41
0 additions, 41 deletions
scripts/i18n.py
with
11 additions
and
54 deletions
Makefile
+
7
−
9
View file @
9c0876ec
...
...
@@ -15,9 +15,7 @@ DIRS = `$(FIND) -exec dirname {} \; | sort -u`
FIND_LIB
=
find
.
-name
'*.so'
FILES_LIB
=
`
$(
FIND_LIB
)
`
SCRIPTS
=
\
scripts/gajim
\
scripts/gajim-remote
SCRIPTS
=
scripts/gajim
all
:
translation trayicon gtkspell idle
...
...
@@ -48,7 +46,7 @@ dist:
for
s
in
$(
SCRIPTS
)
;
do
\
cp
$$
s gajim-
$(
VERSION
)
/scripts/
;
\
done
cp
sc
ripts
/gajim-remote.py gajim-
$(
VERSION
)
/sc
ripts
/
;
\
cp
s
r
c/gajim-remote.py gajim-
$(
VERSION
)
/s
r
c/
;
\
find gajim-
$(
VERSION
)
-name
'.svn'
-type
d | xargs
rm
-rf
find gajim-
$(
VERSION
)
-name
'*.pyc'
-exec
rm
{}
\;
find gajim-
$(
VERSION
)
-name
'*.pyo'
-exec
rm
{}
\;
...
...
@@ -116,9 +114,9 @@ help:
uninstall
:
rm
-rf
"
$(
DESTDIR
)$(
PREFIX
)
/share/gajim"
# the main files are here
rm
-rf
"
$(
DESTDIR
)$(
PREFIX
)
/lib/gajim"
# the .so files are here
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/bin/gajim"
# the bash script
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/bin/gajim-remote"
# remote-control script
rm
-f
"
$(
MANDIR
)
/man1/gajim.1.gz"
# the man page
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/share/pixmaps/gajim.png"
# the icon
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/share/applications/gajim.desktop"
#the desktop
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/bin/gajim"
# the bash script
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/bin/gajim-remote"
# remote-control script
rm
-f
"
$(
MANDIR
)
/man1/gajim.1.gz"
# the man page
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/share/pixmaps/gajim.png"
# the icon
rm
-f
"
$(
DESTDIR
)$(
PREFIX
)
/share/applications/gajim.desktop"
#the desktop
@
echo
done
uninstalling
This diff is collapsed.
Click to expand it.
scripts/gajim-remote
+
3
−
3
View file @
9c0876ec
...
...
@@ -4,8 +4,8 @@
## Gajim Team:
## - Yann Le Boulanger <asterix@lagaule.org>
## - Vincent Hanquez <tab@snarc.org>
##
- Nikos Kouremenos <kourem@gmail.com>
##
- Dimitur Kirov <dkirov@gmail.com>
## - Nikos Kouremenos <kourem@gmail.com>
## - Dimitur Kirov <dkirov@gmail.com>
##
## Copyright (C) 2003-2005 Gajim Team
##
...
...
@@ -22,6 +22,6 @@ if [ `id -u` -eq 0 ]; then
echo
"You must not launch gajim-remote as root, it is INSECURE"
fi
cd
PREFIX/share/gajim/sc
ripts
cd
PREFIX/share/gajim/s
r
c
export
PYTHONPATH
=
"
$PYTHONPATH
:PREFIXLIB/gajim"
python gajim-remote.py
$@
This diff is collapsed.
Click to expand it.
scripts/gajim-remote.py
+
1
−
1
View file @
9c0876ec
...
...
@@ -32,7 +32,7 @@
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_DFL
)
# ^C exits the application
import
i18n
from
common
import
i18n
_
=
i18n
.
_
i18n
.
init
()
...
...
This diff is collapsed.
Click to expand it.
scripts/i18n.py
deleted
100644 → 0
+
0
−
41
View file @
73bd6501
## 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