summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-i18n/2012-September/003381.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-i18n/2012-September/003381.html')
-rw-r--r--zarb-ml/mageia-i18n/2012-September/003381.html190
1 files changed, 190 insertions, 0 deletions
diff --git a/zarb-ml/mageia-i18n/2012-September/003381.html b/zarb-ml/mageia-i18n/2012-September/003381.html
new file mode 100644
index 000000000..18c10fec7
--- /dev/null
+++ b/zarb-ml/mageia-i18n/2012-September/003381.html
@@ -0,0 +1,190 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-i18n] Script for lang&lt;-&gt;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=%3Cop.wkfm62oil2zvei%40localhost%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="003380.html">
+ <LINK REL="Next" HREF="003382.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-i18n] Script for lang&lt;-&gt;po conversion to translate Mageia web pages</H1>
+ <B>Yuri Chornoivan</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=%3Cop.wkfm62oil2zvei%40localhost%3E"
+ TITLE="[Mageia-i18n] Script for lang&lt;-&gt;po conversion to translate Mageia web pages">yurchor at ukr.net
+ </A><BR>
+ <I>Mon Sep 10 20:34:04 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="003380.html">[Mageia-i18n] Script for lang&lt;-&gt;po conversion to translate Mageia web pages
+</A></li>
+ <LI>Next message: <A HREF="003382.html">[Mageia-i18n] Script for lang&lt;-&gt;po conversion to translate Mageia web pages
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#3381">[ date ]</a>
+ <a href="thread.html#3381">[ thread ]</a>
+ <a href="subject.html#3381">[ subject ]</a>
+ <a href="author.html#3381">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>&#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1085;&#1077; Mon, 10 Sep 2012 21:03:14 +0300, Dimitrios Glentadakis
+&lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">dglent at gmail.com</A>&gt;:
+
+&gt;<i> &#931;&#964;&#953;&#962; 10/09/2012 08:11:44 Yuri Chornoivan &#941;&#947;&#961;&#945;&#968;&#949;:
+</I>&gt;&gt;<i> &#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1085;&#1077; Mon, 10 Sep 2012 07:45:47 +0300, Dimitrios Glentadakis
+</I>&gt;&gt;<i> &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">dglent at gmail.com</A>&gt;:
+</I>&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> &#931;&#964;&#953;&#962; 09/09/2012 16:36:13 &#947;&#961;&#940;&#968;&#945;&#964;&#949;:
+</I>&gt;&gt;&gt;&gt;<i> &#931;&#964;&#953;&#962; 09/09/2012 16:20:19 Yuri Chornoivan &#941;&#947;&#961;&#945;&#968;&#949;:
+</I>&gt;&gt;&gt;&gt;&gt;<i> &#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1085;&#1077; Sun, 09 Sep 2012 15:51:44 +0300, Dimitrios Glentadakis
+</I>&gt;&gt;&gt;&gt;&gt;<i> &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">dglent at gmail.com</A>&gt;:
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> &#931;&#964;&#953;&#962; 09/09/2012 14:40:43 Filip Komar &#941;&#947;&#961;&#945;&#968;&#949;:
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Thanks Yuri. Nice job. I think it's worth committing it in svn[1].
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> On 9 September 2012 14:16, Dimitrios Glentadakis &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">dglent at gmail.com</A>&gt;
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> wrote:
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> But what about the already translated .lang files ?
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> The only way to work with po files is to run the script and
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> translate
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> them again ? (i hope no :))
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Dimitrios, did you miss this part of explanation?
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> If you ever need to update something (.lang's were updated or you
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> found a
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> typo, etc.) just run
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> python langpo.py
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> I hope that someone will test this procedure some more and put it
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> in
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> wiki. I'm sure that this script deserve that.
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Best regards,
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Filip.
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> [1] <A HREF="http://svnweb.mageia.org/soft/i18n-tools/">http://svnweb.mageia.org/soft/i18n-tools/</A>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> I run the script in the folder with the English .lang files, how i
+</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> will
+</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> merge them with my existing .lang files?
+</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> If i run the script in the el folder nothing happens
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;<i> Attached is a one-time converter for existing translations.
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;<i> Run it as
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;<i> python translated_converter.py -l &lt;lang_code&gt;
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;<i> (Ex.: python translated_converter.py -l el)
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;<i> in a folder of translations. Then copy po's with their folders into
+</I>&gt;&gt;&gt;&gt;&gt;<i> /en
+</I>&gt;&gt;&gt;&gt;&gt;<i> folder and run
+</I>&gt;&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;&gt;<i> python langpo.py
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> Thanks Yuri, i will give a feedback later
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> In some files i have incomplete po file like the 2.lang the po file has
+</I>&gt;&gt;&gt;<i> only 1 string:
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> #
+</I>&gt;&gt;&gt;<i> msgid &quot;&quot;
+</I>&gt;&gt;&gt;<i> msgstr &quot;&quot;
+</I>&gt;&gt;&gt;<i> &quot;Project-Id-Version: 2.el.lang\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;Report-Msgid-Bugs-To: <A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">mageia-i18n at mageia.org</A>\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;POT-Creation-Date: 2012-09-10 06:38+0200\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;PO-Revision-Date: 2012-09-10 06:38+0200\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;Last-Translator: Duffy Duck &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">d_duck at nowher.net</A>&gt;\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;Language-Team: el &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">mageia-el at mageia.org</A>&gt;\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;MIME-Version: 1.0\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;Content-Type: text/plain; charset=UTF-8\n&quot;
+</I>&gt;&gt;&gt;<i> &quot;Content-Transfer-Encoding: 8bit\n&quot;
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> #: 2.el.lang
+</I>&gt;&gt;&gt;<i> msgctxt &quot;/en/2/download_index.php +188&quot;
+</I>&gt;&gt;&gt;<i> msgid &quot;Same + nonfree firmware&quot;
+</I>&gt;&gt;&gt;<i> msgstr &quot;&#932;&#959; &#943;&#948;&#953;&#959; + &#956;&#951; &#949;&#955;&#949;&#973;&#952;&#949;&#961;&#959; firmware&quot;
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> And in the most of the po i have only the headers.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Should be fixed now (it was hard to parse custom formats ;) ). Thanks
+</I>&gt;&gt;<i> for
+</I>&gt;&gt;<i> the testing.
+</I>&gt;<i>
+</I>&gt;<i> Ok, with a first look it seems that the po files are correct except the
+</I>&gt;<i> &quot;about&quot; , in the last string it merges two at once:
+</I>&gt;<i>
+</I>&gt;<i> #: about.el.lang
+</I>&gt;<i> msgid &quot;&lt;a href=\&quot;%s\&quot;&gt;Logo, CD covers files, media files&lt;/a&gt;.&quot;
+</I>&gt;<i> msgstr &quot;&quot;
+</I>&gt;<i> &quot;&lt;a href=\&quot;%s\&quot;&gt;&#923;&#959;&#947;&#972;&#964;&#965;&#960;&#945;, &#947;&#961;&#945;&#966;&#953;&#954;&#940;, &#949;&#958;&#974;&#966;&#965;&#955;&#955;&#945; CD/DVD&lt;/a&gt;.\n&quot;
+</I>&gt;<i> &quot; \n&quot;
+</I>&gt;<i> &quot;;&lt;a href=\&quot;%s\&quot;&gt;Current graphics charter&lt;/a&gt;.\n&quot;
+</I>&gt;<i> &quot;&lt;a href=\&quot;%s\&quot;&gt;&#935;&#940;&#961;&#964;&#951;&#962; &#964;&#969;&#957; &#947;&#961;&#945;&#966;&#953;&#954;&#974;&#957; &#964;&#951;&#962; &#948;&#953;&#945;&#957;&#959;&#956;&#942;&#962;&lt;/a&gt;.&quot;
+</I>&gt;<i>
+</I>
+about.el.lang has an extra space in line 73. This cannot be predicted by
+the script, I can write the code that strips spaces, but who knows what
+can be found in other files... Please remove it. ;)
+
+&gt;<i>
+</I>&gt;<i> Another thing is the team mailing list address:
+</I>&gt;<i>
+</I>&gt;<i> --- translated_converter.py.orig 2012-09-10 19:56:38.183298299
+</I>&gt;<i> +0200
+</I>&gt;<i> +++ translated_converter.py 2012-09-10 19:58:17.424971357 +0200
+</I>&gt;<i> @@ -49,7 +49,7 @@
+</I>&gt;<i> 'POT-Creation-Date': pocreationtime,
+</I>&gt;<i> 'PO-Revision-Date': pocreationtime,
+</I>&gt;<i> 'Last-Translator': 'Duffy Duck &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-i18n">d_duck at nowhere.net</A>&gt;',
+</I>&gt;<i> - 'Language-Team': lang_code + ' &lt;mageia-' + lang_code +
+</I>&gt;<i> '@mageia.org&gt;',
+</I>&gt;<i> + 'Language-Team': lang_code + ' &lt;i18n-' + lang_code +
+</I>&gt;<i> '@ml.mageia.org&gt;',
+</I>&gt;<i> 'MIME-Version': '1.0',
+</I>&gt;<i> 'Content-Type': 'text/plain; charset=UTF-8',
+</I>&gt;<i> 'Content-Transfer-Encoding': '8bit',
+</I>&gt;<i>
+</I>&gt;<i> * the last translator :)
+</I>
+I cannot predict neither the team list nor the last translator. Well, I
+_can_ but I think it is not worth to as all PO files are transient. If you
+have any other proposal about the last translator just put it in the
+script (it's in the place where Filip propose to put it). ;)
+</PRE>
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="003380.html">[Mageia-i18n] Script for lang&lt;-&gt;po conversion to translate Mageia web pages
+</A></li>
+ <LI>Next message: <A HREF="003382.html">[Mageia-i18n] Script for lang&lt;-&gt;po conversion to translate Mageia web pages
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#3381">[ date ]</a>
+ <a href="thread.html#3381">[ thread ]</a>
+ <a href="subject.html#3381">[ subject ]</a>
+ <a href="author.html#3381">[ 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>