Changeset 6408
- Timestamp:
- 05/31/06 21:49:24 (2 years ago)
- Location:
- branches/gajim_0.10
- Files:
-
- 18 removed
- 3 modified
- 18 copied
-
Makefile (modified) (2 diffs)
-
po/bg (deleted)
-
po/bg.po (copied) (copied from branches/gajim_0.10/po/bg/LC_MESSAGES/gajim.po)
-
po/cs (deleted)
-
po/cs.po (copied) (copied from branches/gajim_0.10/po/cs/LC_MESSAGES/gajim.po)
-
po/de (deleted)
-
po/de.po (copied) (copied from branches/gajim_0.10/po/de/LC_MESSAGES/gajim.po)
-
po/el (deleted)
-
po/el.po (copied) (copied from branches/gajim_0.10/po/el/LC_MESSAGES/gajim.po)
-
po/es (deleted)
-
po/es.po (copied) (copied from branches/gajim_0.10/po/es/LC_MESSAGES/gajim.po)
-
po/eu (deleted)
-
po/eu.po (copied) (copied from branches/gajim_0.10/po/eu/LC_MESSAGES/gajim.po)
-
po/fr (deleted)
-
po/fr.po (copied) (copied from branches/gajim_0.10/po/fr/LC_MESSAGES/gajim.po)
-
po/it (deleted)
-
po/it.po (copied) (copied from branches/gajim_0.10/po/it/LC_MESSAGES/gajim.po)
-
po/Makefile (modified) (2 diffs)
-
po/nb (deleted)
-
po/nb.po (copied) (copied from branches/gajim_0.10/po/nb/LC_MESSAGES/gajim.po)
-
po/nl (deleted)
-
po/nl.po (copied) (copied from branches/gajim_0.10/po/nl/LC_MESSAGES/gajim.po)
-
po/no (deleted)
-
po/no.po (copied) (copied from branches/gajim_0.10/po/no/LC_MESSAGES/gajim.po)
-
po/pl (deleted)
-
po/pl.po (copied) (copied from branches/gajim_0.10/po/pl/LC_MESSAGES/gajim.po)
-
po/pt (deleted)
-
po/pt_BR (deleted)
-
po/pt_BR.po (copied) (copied from branches/gajim_0.10/po/pt_BR/LC_MESSAGES/gajim.po)
-
po/pt.po (copied) (copied from branches/gajim_0.10/po/pt/LC_MESSAGES/gajim.po)
-
po/ru (deleted)
-
po/ru.po (copied) (copied from branches/gajim_0.10/po/ru/LC_MESSAGES/gajim.po)
-
po/sk (deleted)
-
po/sk.po (copied) (copied from branches/gajim_0.10/po/sk/LC_MESSAGES/gajim.po)
-
po/sv (deleted)
-
po/sv.po (copied) (copied from branches/gajim_0.10/po/sv/LC_MESSAGES/gajim.po)
-
po/zh_CN (deleted)
-
po/zh_CN.po (copied) (copied from branches/gajim_0.10/po/zh_CN/LC_MESSAGES/gajim.po)
-
scripts/dev/translations.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.10/Makefile
r6158 r6408 47 47 find . -name '*.pyc' -exec rm {} \; 48 48 find . -name '*.pyo' -exec rm {} \; 49 find . -name '*.mo' -exec rm {} \;50 rm -f gajim.desktop \;49 ${MAKE} -C po clean 50 rm -f gajim.desktop 51 51 $(foreach sdir, $(MODULES), ${MAKE} -C $(sdir) clean;) 52 53 52 dist: 54 53 rm -rf gajim-$(VERSION) … … 89 88 fi; \ 90 89 done 91 for f in $(FILES_PO) ; do \ 92 DST=`dirname "$$f"`; \ 93 cp "./po/$$f" "$(DESTDIR)$(PREFIX)/share/locale/$$DST/"; \ 94 done 90 ${MAKE} -C po install PREFIX=$(PREFIX) 95 91 cp COPYING "$(DESTDIR)$(PREFIX)/share/gajim/"; 96 92 cp THANKS "$(DESTDIR)$(PREFIX)/share/gajim/"; -
branches/gajim_0.10/po/Makefile
r6407 r6408 1 top_srcdir = ../src/2 1 NAME = gajim 3 2 LANGS := fr pt el pl es ru bg de nb cs nl pt_BR sv it eu sk no zh_CN 4 LANGDIR := $(foreach LANG, $(LANGS),$(LANG)/LC_MESSAGES/gajim.mo) 3 LANGS_PO:=$(foreach LANG, ${LANGS}, ${LANG}.po) 4 LANGS_MO:=$(foreach LANG, ${LANGS}, ${LANG}.mo) 5 DATADIR:=$(subst //,/,${DESTDIR}/${PREFIX}/share) 5 6 6 all: $(LANG DIR)7 all: $(LANGS_MO) 7 8 8 9 %.mo: %.po … … 53 54 intltool-update --pot --gettext-package=$(NAME) 54 55 56 install: 57 for l in ${LANGS}; do\ 58 dir=${DATADIR}/locale/$${l}/LC_MESSAGES;\ 59 if test ! -d $${dir}; then\ 60 install -m 755 -d $${dir};\ 61 fi;\ 62 install -m 644 $${l}.mo $${dir}/${NAME}.mo;\ 63 done 64 55 65 clean: 56 find . -name '*.mo' -exec rm {} \;66 rm -f *.mo -
branches/gajim_0.10/scripts/dev/translations.py
r6407 r6408 11 11 update = False 12 12 check = False 13 path_to_dir = '../../po' 13 14 14 def visit(arg, dirname, names): 15 if dirname.find('.svn') != -1: 16 return 17 if dirname.endswith('LC_MESSAGES'): 18 if 'gajim.po' in names: 19 path_to_po = os.path.join(dirname, 'gajim.po') 20 pos = path_to_po.find('po/') + 3 #3 = len('po/') 21 endpos = path_to_po.find('/', pos) 22 name = path_to_po[pos:endpos] 15 def visit(files): 16 for file in files: 17 if file.endswith('.po'): 18 path_to_po = os.path.join(path_to_dir, file) 23 19 if update: # update an existing po file) 24 os.system('msgmerge -q -U ../../po/'+name+'/LC_MESSAGES/gajim.po ../../po/gajim.pot')20 os.system('msgmerge -q -U %s %s' % (path_to_po, os.path.join(path_to_dir, 'gajim.pot'))) 25 21 if stats: 26 print name, 'has now:'22 print file[:-3], 'has now:' 27 23 os.system('msgfmt --statistics ' + path_to_po) 28 24 if check: 29 25 os.system('msgfmt -c ' + path_to_po) 30 else:31 print 'PROBLEM: cannot find gajim.po in', dirname32 26 33 27 def show_help(): … … 53 47 path_to_dir = '../../po' 54 48 49 files = os.listdir(path_to_dir) 55 50 if len(sys.argv) == 2: 56 51 if sys.argv[1].startswith('h'): … … 60 55 if param == 'stats': # stats only 61 56 stats = True 62 os.path.walk(path_to_dir, visit, None)57 visit(files) 63 58 elif param == 'update': # update only 64 59 update_pot() 65 60 update = True 66 os.path.walk(path_to_dir, visit, None) # update each po & no stats61 visit(files) 67 62 print 'Done' 68 63 elif param == 'check': 69 64 check = True 70 os.path.walk(path_to_dir, visit, None)65 visit(files) 71 66 72 67 elif len(sys.argv) == 1: # update & stats & no check … … 74 69 update = True 75 70 stats = True 76 os.path.walk(path_to_dir, visit, None)71 visit(files) 77 72 print 'Done' 78 73
