Summary: | Make Scheme strings i18n-ized | ||
---|---|---|---|
Product: | UIM | Reporter: | YamaKen <yamaken> |
Component: | libuim | Assignee: | YamaKen <yamaken> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | low | CC: | abelcheung, uim-bugs |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://lists.sourceforge.jp/mailman/archives/anthy-dev/2004-April/000718.html | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
YamaKen
2004-04-21 16:16:33 UTC
Accomplished by r1368. But automatic update for po files is not yet available. ------------------------------------------------------------------------ r1368 | yamaken | 2004-09-30 15:55:13 +0900 (Thu, 30 Sep 2004) | 134 lines * This commit enables proper gettext handling within Scheme world, adds locale object for Scheme, and adds an alternative implementation of uim_get_language_name_from_locale() written in Scheme * Although the codes for Scheme gettext is sufficient, automatic update of po files involving scm files are not yet provided I found a solution, 'xgettext recognise .scm extension'. See http://lists.gnu.org/archive/html/bug-gnu-utils/2004-08/msg00022.html But even newest version of gettext doesn't supporting .scm yet, we should use another solution for now. My proposal is that copy all xxx.scm files to xxx.lisp, list up all xxx.lisp in POTFILES.in.temp. This will need modification of intltoo-update.in, so this means we couldn't use intltoolize in autogen.sh. But I think this is reasonable temporary solution, what do you think? xgettext can extract the texts from *.scm. Try following command. $ xgettext -LLisp -kN_ -k_ *.scm The problem is not the extracting but the proper Makefile automation. > The problem is not the extracting but the proper Makefile automation.
What is "Makefile automation"?
> What is "Makefile automation"?
Make 'make update-po' work involving *.scm in proper way.
And so on for any other Makefile targets.
> Make 'make update-po' work involving *.scm in proper way.
This is possible with my proposal 'copy all xxx.scm files to xxx.lisp,
list up all xxx.lisp in POTFILES.in.temp.'
To confirm my proposal, check out revision 1627 and rerun ./configure script,
then try 'make update-po'.
> > Make 'make update-po' work involving *.scm in proper way.
>
> This is possible with my proposal 'copy all xxx.scm files to xxx.lisp,
> list up all xxx.lisp in POTFILES.in.temp.'
'in proper way' is my intention. Don't igonre it.
Although I don't know whether such way exists or not, I think that we should
record accurate information such as 'there is no proper way' or 'the proper way
may exist, but we choose the temporary solution' in this BTS item.
Sorry, I missed 'proper way'. Proper way is make xgettext correspond to .scm files. Next version of gettext will correspond it, there's nothing we can except waiting new version. Maybe intltool need modification, because intltool seems treating .scm files specially. > Proper way is make xgettext correspond to .scm files. Next version of gettext
> will correspond it, there's nothing we can except waiting new version.
>
> Maybe intltool need modification, because intltool seems treating .scm files
> specially.
I've understood well. Thank you for the detailed explanation and your work.
The *.scm suffix problem is resolved by a small workaround in r4238, with intltool 0.35.2. And with libtoolize-related cleanup in r4236-r4251, the broken 'make distcheck' problem has finally been resolved (although done with some dirty hacks). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.