[Gnucash-changes] r13208 - htdocs/trunk - updating translation instructions and helpers

Neil Williams codehelp at cvs.gnucash.org
Sat Feb 11 13:37:59 EST 2006


Author: codehelp
Date: 2006-02-11 13:37:58 -0500 (Sat, 11 Feb 2006)
New Revision: 13208
Trac: http://svn.gnucash.org/trac/changeset/13208

Modified:
   htdocs/trunk/README
   htdocs/trunk/create-potfiles.pl
   htdocs/trunk/make-pot.sh
   htdocs/trunk/po/POTFILES
Log:
updating translation instructions and helpers

Modified: htdocs/trunk/README
===================================================================
--- htdocs/trunk/README	2006-02-11 18:37:16 UTC (rev 13207)
+++ htdocs/trunk/README	2006-02-11 18:37:58 UTC (rev 13208)
@@ -1,20 +1,23 @@
 # Notes for those editing these pages.
 #
-# all pages must call emulate_globals_on.php
-# Two variables then become available on all systems:
-# $toppath is for filesystem paths, generally include files.
-# $topdir is for http paths e.g. images and other user-facing resources.
-# To make your pages portable, always precede a local href or src
-# location with $topdir:
-# src="<?php echo $topdir; ?>/path"
-# this allows mirrors to install the site in a sub-directory.
+# all pages must call emulate_globals_on.php to bring in
+# gettext support.
 #
 # Within content, the absolute rules are:
 # 1. If you OPEN a tag, YOU are responsible for closing it
 # 2. Escape all entities: use &amp; &lt; &gt; - watch those
 # Bugzilla or SourceForge URL links: all query strings need to
 # use &amp;
+#
+# Setup
+# =====
+# 
+# This section will be improved as more mirrors come into use.
+# 
+# Your DocumentRoot should be <path to checkout>/htdocs/www
+# Files in htdocs/ should NOT be visible on your website!
 
+
 # i18n and l10n:
 # =============
 # 
@@ -33,3 +36,37 @@
 # portuguese pt_BR pt_BR.iso88591 pt_BR.utf8 pt_PT pt_PT.iso88591
 # pt_PT.utf8 spanish
 
+# The aim is that all translatable content is in either www/ or news/
+# and all translation files are in htdocs/ and po/. Other directories will be
+# gradually removed. In particular, www/ and news/ will not need
+# to contain separate directories for each supported language. Scripts will
+# then update the gnucash-htdocs.pot file, merge updated messages with available
+# translations and create binary translation files in relevant LC_MESSAGES locations
+# ready for a commit.
+#
+# Preparing translations:
+# =======================
+# 
+# ./create-potfiles.pl > po/POTFILES
+# ./make-pot.sh
+
+# Now merge the new content into your translation, substituting the name of 
+# your po file in the command:
+
+# msgmerge po/en_GB.po po/gnucash-htdocs.pot -o po/en_GB.po
+
+# Finally, see the size of the task ahead:
+
+# msgfmt -c --statistics po/en_GB.po
+
+# Whilst editing the translation, run the msgfmt command from time to time to catch
+# errors and let you know how much is left to do.
+
+# When you come across fuzzy markers: (#, fuzzy), remove them.
+
+# When you have no fuzzy and no untranslated messages, update the binary translation file:
+
+msgfmt po/en_GB.po -o en_GB/LC_MESSAGES/gnucash-htdocs.mo
+
+# Again, substitute your language in the name of the po file and the installed directory.
+


Property changes on: htdocs/trunk/create-potfiles.pl
___________________________________________________________________
Name: svn:executable
   + *


Property changes on: htdocs/trunk/make-pot.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: htdocs/trunk/po/POTFILES
===================================================================
--- htdocs/trunk/po/POTFILES	2006-02-11 18:37:16 UTC (rev 13207)
+++ htdocs/trunk/po/POTFILES	2006-02-11 18:37:58 UTC (rev 13208)
@@ -26,32 +26,18 @@
 www/screenshots.phtml
 www/search.phtml
 www/sizing.phtml
-www/sql.phtml
-www/externals/en/menu-documentation.phtml
-www/externals/en/menu-downloads.phtml
-www/externals/en/menu-main-help.phtml
-www/externals/en/footer.phtml
-www/externals/en/menu-general.phtml
-www/externals/en/menu-other.phtml
-www/externals/en/menu-developer.phtml
-www/externals/en/menu-search.phtml
-www/externals/en/header.phtml
-www/externals/en/menu-help.phtml
-www/links/links-utilities.phtml
-www/links/links-review.phtml
-www/links/links-xml.phtml
-www/links/links-stock.phtml
-www/links/links-erp.phtml
-www/links/links-money.phtml
-www/links/links-palm.phtml
-www/links/links-misc.phtml
-www/links/links-obsolete.phtml
-www/links/links-general.phtml
-www/links/links-quote.phtml
+www/externals/menu-other.phtml
+www/externals/footer.phtml
+www/externals/header.phtml
+www/externals/menu-documentation.phtml
+www/externals/menu-developer.phtml
+www/externals/menu-main-general.phtml
+www/externals/menu-downloads.phtml
+www/externals/menu-general.phtml
+www/externals/menu-main-help.phtml
+www/externals/menu-main-documentation.phtml
+www/externals/menu-main-developer.phtml
+www/externals/menu-main.phtml
+www/externals/menu-main-other.phtml
 www/state_of_the_gnucash_project.phtml
-www/contribute/contribute-translator.phtml
-www/contribute/contribute-writer.phtml
-www/contribute/contribute-fan.phtml
-www/contribute/contribute-webmaster.phtml
-www/contribute/contribute-programmer.phtml
-www/t-shirt/index.phtml
+www/rss-feed.phtml



More information about the gnucash-changes mailing list