From: yanmar <k.y...@gm...> - 2011-07-30 13:27:16
|
Hi Jerome, I've checked the minimum condition for reflecting my PO translation, under branches/maintenance/gramps33. Don't need to create rel_ja.py, edit relplugins.gpr.py just for this purpose. All I have to do is below: --- 1. Add "ja" string to ALL_LINGUAS variable on configure.in: ALL_LINGUAS="hu zh_CN cs da de es fr it nb nl nn pl pt_BR pt_PT ru sv fi lt sk bg hr sl ca sq he uk ja" 2. Put po/ja.po (partly translated, and not all string is "fuzzy") 3. Execute ./autogen.sh, make, make install (as root depends on prefix) --- This makes ${prefix}/share/locale/ja/LC_MESSAGES/gramps.mo correctly. And, my Japanese translation is applied expectedly ; ) > Since there was some changes on locales management I could be wrong, but the last time I needed to test an other localized relationship handler, it seems to me that I forced the LANGUAGE variable! I've checked $LANGUAGE variable, but It was set "ja:en" - appears no influence. Regards, Keiichiro Yamamoto 2011/7/15 jerome <rom...@ya...>: > Hi Keiichiro, > > > Since there was some changes on locales management I could be wrong, but the last time I needed to test an other localized relationship handler, it seems to me that I forced the LANGUAGE variable! > > http://www.gnu.org/software/hello/manual/gettext/Locale-Environment-Variables.html > http://www.gnu.org/software/hello/manual/gettext/The-LANGUAGE-variable.html#The-LANGUAGE-variable > > You are running sources with some modifications, maybe some settings will be naturally set with a standard installation ? > >> If there's another proper way (without making relationship >> calculator, or >> how to properly create rel calculator), please guide me, >> thanks. > > For now, you have french strings and relations ! > If you understand french and japanese calculation is the same, you can translate the hard coded strings into your new rel_ja.py. > > But > > --- En date de : Jeu 14.7.11, yanmar <k.y...@gm...> a écrit : > >> De: yanmar <k.y...@gm...> >> Objet: Re: Let me join Gramps project (Japanese) >> À: "jerome" <rom...@ya...> >> Cc: "Brian Matherly" <br...@gr...> >> Date: Jeudi 14 juillet 2011, 0h22 >> Hi Jerome, >> >> Thanks for your advise, I can reflect my translation. >> The point was relationship calculator. I've tried to add >> Japanese one. >> >> 1. LOCALEDIR is set on /usr/local/share/locale and there's >> gramps.mo file >> under ja/LC_MESSAGES. >> >> 2. But the message was not vanished: >> "No translation available for language 'ja'. Using >> 'english' instead." >> >> 3. I've greped the error on code, and fount the part on >> Relationship.py, >> get_relationship_calculator method. there's if-else >> checking of >> relationship calculator >> as the translation exists or not. >> >> 4. so, I've quickly added the ja module for recognition. >> # cd /usr/local/share/gramps/plugins/rel >> # cp rel_fr.py rel_ja.py # just copied, no editing >> # vi relplugins.gpr.py # and added below: >> --- >> # ja >> plg = newplugin() >> plg.id = 'relcalc_ja' >> plg.name = _("Japanese Relationship Calculator") >> plg.description = _("Calculates relationships between >> people") >> plg.version = '1.0' >> plg.gramps_target_version = '3.3' >> plg.status = STABLE >> plg.fname = 'rel_ja.py' >> plg.ptype = RELCALC >> plg.relcalcclass = 'RelationshipCalculator' >> plg.lang_list = ["ja", "JA", "ja_JP", "日本語", >> "Japanese", "ja_JP.UTF8", >> >> "ja_JP.UTF-8", "ja_JP.utf-8", >> "ja_JP.utf8"] >> --- >> >> If there's another proper way (without making relationship >> calculator, or >> how to properly create rel calculator), please guide me, >> thanks. >> >> Regards >> Keiichiro Yamamoto >> > > > |