trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building vanilla gnu.org-i18n


From: Kaloian Doganov
Subject: Re: building vanilla gnu.org-i18n
Date: Mon, 10 Dec 2007 12:01:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gNewSense gnu/linux)

Yavor Doganov <address@hidden> writes:

    > Yes, let's go ahead.  When you copy the new templates, please commit
    > them even if they fail to build with the rest of the system.  We would
    > like to see what the errors are.

    That's self explanatory.  I'll only remove the sidebar stuff, as it's
    obsolete now.  

Thank you for doing this.  Now that the repository is self contained, it
is easy to spot couple of issues:

1. When generating a pot-file, po4a-gettextize always updates the
   "POT-Creation-Date" field, even all other strings are identical.  For
   example:

--- gnu/po/rms-lisp.pot (revision 306)
+++ gnu/po/rms-lisp.pot (working copy)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2007-12-05 22:29+0200\n"
+"POT-Creation-Date: 2007-12-10 10:53+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <address@hidden>\n"
 "Language-Team: LANGUAGE <address@hidden>\n"

   I suppose we wouldn't want to commit such "changes" in www.  Thus we
   have to find a way to avoid commiting them, or avoid running
   po4a-gettextize on those cases.

2. Now Po4a's Xhtml module generates the same results for the templates
   (www/server directory) as the Html module currently in use.  For all
   other file we're already using the Xhtml module.  I suggest to switch
   entirely to Xhtml module.  This could be done with the following
   change:

@@ -29,7 +29,6 @@
 PO4A-GETTEXTIZEFLAGS =
 PO4A-TRANSLATEFLAGS = --keep=0

-PO4A_HTMLFLAGS = --format=html
 PO4A_XHTMLFLAGS = --format=xhtml -o ontagerror=silent -o "tags=<gnu.org-i18n>"

 rootdir := ../..
@@ -87,7 +86,7 @@
 .PRECIOUS: $(template_dir)/po/%.pot
 $(template_dir)/po/%.pot: $(template_dir)/%.html
        @echo Generating POT...
-       $(PO4A-GETTEXTIZE) $(PO4A_HTMLFLAGS) $(PO4A-GETTEXTIZEFLAGS) --master 
$< --po $@
+       $(PO4A-GETTEXTIZE) $(PO4A_XHTMLFLAGS) $(PO4A-GETTEXTIZEFLAGS) --master 
$< --po $@

 define template_rules
 $(template_dir)/po/%.$(1).po: $(template_dir)/po/%.pot
@@ -96,7 +95,7 @@

 $(template_dir)/%.$(1).html: $(template_dir)/%.html 
$(template_dir)/po/%.$(1).po
        @echo Generating the translated article...
-       $(PO4A-TRANSLATE) $(PO4A_HTMLFLAGS) $(PO4A-TRANSLATEFLAGS) --master $$< 
--po \
+       $(PO4A-TRANSLATE) $(PO4A_XHTMLFLAGS) $(PO4A-TRANSLATEFLAGS) --master 
$$< --po \
                $(template_dir)/po/$$(*F).$(1).po --localized $$@
 endef

  Should I install it?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]