diff options
Diffstat (limited to 'zarb-ml/mageia-i18n/2012-September/003387.html')
-rw-r--r-- | zarb-ml/mageia-i18n/2012-September/003387.html | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/zarb-ml/mageia-i18n/2012-September/003387.html b/zarb-ml/mageia-i18n/2012-September/003387.html new file mode 100644 index 000000000..e01c198e3 --- /dev/null +++ b/zarb-ml/mageia-i18n/2012-September/003387.html @@ -0,0 +1,112 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-i18n%40mageia.org?Subject=Re%3A%20%5BMageia-i18n%5D%20Script%20for%20lang%3C-%3Epo%20conversion%20to%20translate%0A%20Mageia%20web%20pages&In-Reply-To=%3C5055B08F.7020207%40gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="003383.html"> + <LINK REL="Next" HREF="003388.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages</H1> + <B>Stefano Negro</B> + <A HREF="mailto:mageia-i18n%40mageia.org?Subject=Re%3A%20%5BMageia-i18n%5D%20Script%20for%20lang%3C-%3Epo%20conversion%20to%20translate%0A%20Mageia%20web%20pages&In-Reply-To=%3C5055B08F.7020207%40gmail.com%3E" + TITLE="[Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages">stblack at gmail.com + </A><BR> + <I>Sun Sep 16 12:57:19 CEST 2012</I> + <P><UL> + <LI>Previous message: <A HREF="003383.html">[Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages +</A></li> + <LI>Next message: <A HREF="003388.html">[Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#3387">[ date ]</a> + <a href="thread.html#3387">[ thread ]</a> + <a href="subject.html#3387">[ subject ]</a> + <a href="author.html#3387">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 09/09/2012 02:04 PM, Yuri Chornoivan wrote: +><i> Hi, +</I>><i> +</I>><i> For some reasons usual conversion scripts for .lang files from +</I>><i> Translate Toolkit do not work as expected. +</I>><i> +</I>><i> Nevertheless, the attached script may be useful for those who want to +</I>><i> organize sustainable translation process of web pages translation. +</I>><i> +</I>><i> Prerequisites: +</I>><i> +</I>><i> Installed python-polib package: +</I>><i> +</I>><i> # urpmi python-polib +</I>><i> +</I>><i> Usage: +</I>><i> +</I>><i> 1. Copy the script into the folder with English .lang files. +</I>><i> 2. Run +</I>><i> python langpo.py +</I>><i> 3. Script will create .pot's for all .lang's in the folder. Translate +</I>><i> pot's and rename the translations into <lang_code>.po +</I>><i> 4. Run +</I>><i> python langpo.py +</I>><i> once more to create lang's for your language. +</I>><i> +</I>><i> If you ever need to update something (.lang's were updated or you +</I>><i> found a typo, etc.) just run +</I>><i> python langpo.py +</I>><i> +</I>><i> Limitations: +</I>><i> The script is useful only for Unicode translations. +</I>><i> +</I>><i> Hope it will be useful. +</I>><i> +</I>><i> Best regards, +</I>><i> Yuri +</I>Hi Yuri, +I downloaded all lang with svn and after step 2 I have une directory for +each pot. checking 2.pot I've seen that line : + +# en/2/download_index.php +15 +;Download Mageia 2 DVD, CD, LiveCD, network install ISO images. +Download Mageia 2 DVD, CD, LiveCD, network install ISO images. + +is missing in the pot. + +Another doubt. +Which order has the strings in pot? It should be like lang only with +pot syntax? + +---- +Ciao +Stblack +<A HREF="http://www.linux.it/~stblack">http://www.linux.it/~stblack</A> + +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="003383.html">[Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages +</A></li> + <LI>Next message: <A HREF="003388.html">[Mageia-i18n] Script for lang<->po conversion to translate Mageia web pages +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#3387">[ date ]</a> + <a href="thread.html#3387">[ thread ]</a> + <a href="subject.html#3387">[ subject ]</a> + <a href="author.html#3387">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-i18n">More information about the Mageia-i18n +mailing list</a><br> +</body></html> |