gettext 3.2.6 → 3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/doc/text/news.md +6 -0
- data/lib/gettext/tools/msgcat.rb +41 -1
- data/lib/gettext/tools/parser/haml.rb +61 -0
- data/lib/gettext/version.rb +1 -1
- data/locale/ja/LC_MESSAGES/gettext.mo +0 -0
- data/po/bg/gettext.edit.po +27 -23
- data/po/bg/gettext.po +3 -0
- data/po/bs/gettext.edit.po +27 -23
- data/po/bs/gettext.po +3 -0
- data/po/ca/gettext.edit.po +27 -23
- data/po/ca/gettext.po +3 -0
- data/po/cs/gettext.edit.po +27 -23
- data/po/cs/gettext.po +3 -0
- data/po/de/gettext.edit.po +27 -23
- data/po/de/gettext.po +3 -0
- data/po/el/gettext.edit.po +27 -23
- data/po/el/gettext.po +3 -0
- data/po/eo/gettext.edit.po +27 -23
- data/po/eo/gettext.po +3 -0
- data/po/es/gettext.edit.po +27 -23
- data/po/es/gettext.po +3 -0
- data/po/et/gettext.edit.po +27 -23
- data/po/et/gettext.po +3 -0
- data/po/fr/gettext.edit.po +27 -23
- data/po/fr/gettext.po +3 -0
- data/po/gettext.pot +30 -26
- data/po/hr/gettext.edit.po +27 -23
- data/po/hr/gettext.po +3 -0
- data/po/hu/gettext.edit.po +27 -23
- data/po/hu/gettext.po +3 -0
- data/po/it/gettext.edit.po +27 -23
- data/po/it/gettext.po +3 -0
- data/po/ja/gettext.edit.po +28 -24
- data/po/ja/gettext.po +4 -1
- data/po/ko/gettext.edit.po +27 -23
- data/po/ko/gettext.po +3 -0
- data/po/lv/gettext.edit.po +27 -23
- data/po/lv/gettext.po +3 -0
- data/po/nb/gettext.edit.po +27 -23
- data/po/nb/gettext.po +3 -0
- data/po/nl/gettext.edit.po +27 -23
- data/po/nl/gettext.po +3 -0
- data/po/pt_BR/gettext.edit.po +27 -23
- data/po/pt_BR/gettext.po +3 -0
- data/po/ru/gettext.edit.po +27 -23
- data/po/ru/gettext.po +3 -0
- data/po/sr/gettext.edit.po +27 -23
- data/po/sr/gettext.po +3 -0
- data/po/sv/gettext.edit.po +27 -23
- data/po/sv/gettext.po +3 -0
- data/po/uk/gettext.edit.po +27 -23
- data/po/uk/gettext.po +3 -0
- data/po/vi/gettext.edit.po +27 -23
- data/po/vi/gettext.po +3 -0
- data/po/zh/gettext.edit.po +27 -23
- data/po/zh/gettext.po +3 -0
- data/po/zh_TW/gettext.edit.po +27 -23
- data/po/zh_TW/gettext.po +3 -0
- data/samples/cgi/po/helloerb1.pot +2 -2
- data/samples/cgi/po/helloerb2.pot +2 -2
- data/samples/cgi/po/hellolib.pot +2 -2
- data/samples/cgi/po/main.pot +2 -2
- data/samples/po/hello.pot +4 -4
- data/samples/po/hello2.pot +2 -2
- data/samples/po/hello_glade2.pot +3 -3
- data/samples/po/hello_gtk2.pot +2 -2
- data/samples/po/hello_gtk_builder.pot +2 -2
- data/samples/po/hello_noop.pot +2 -2
- data/samples/po/hello_plural.pot +2 -2
- data/samples/po/hello_tk.pot +2 -2
- data/test/po/_.pot +3 -3
- data/test/po/backslash.pot +4 -6
- data/test/po/hello.pot +3 -3
- data/test/po/ja/hello.edit.po +1 -0
- data/test/po/non_ascii.pot +3 -3
- data/test/po/np_.pot +5 -8
- data/test/po/ns_.pot +4 -6
- data/test/po/p_.pot +4 -4
- data/test/po/s_.pot +4 -6
- data/test/po/untranslated.pot +3 -3
- data/test/tools/test_msgcat.rb +49 -1
- metadata +4 -3
data/po/zh_TW/gettext.po
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: helloerb1 3.1.3\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2014-07-
|
|
12
|
-
"PO-Revision-Date: 2014-07-
|
|
11
|
+
"POT-Creation-Date: 2014-07-09 14:27+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2014-07-09 14:27+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: helloerb2 3.1.3\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2014-07-
|
|
12
|
-
"PO-Revision-Date: 2014-07-
|
|
11
|
+
"POT-Creation-Date: 2014-07-09 14:27+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2014-07-09 14:27+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/cgi/po/hellolib.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: hellolib 3.1.3\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2014-07-
|
|
12
|
-
"PO-Revision-Date: 2014-07-
|
|
11
|
+
"POT-Creation-Date: 2014-07-09 14:27+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2014-07-09 14:27+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/cgi/po/main.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: main 3.1.3\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2014-07-
|
|
12
|
-
"PO-Revision-Date: 2014-07-
|
|
11
|
+
"POT-Creation-Date: 2014-07-09 14:27+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2014-07-09 14:27+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/po/hello.pot
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
-
# This file is distributed under the same license as the
|
|
3
|
+
# This file is distributed under the same license as the hello package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version:
|
|
9
|
+
"Project-Id-Version: hello 3.1.3\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date:
|
|
12
|
-
"PO-Revision-Date:
|
|
11
|
+
"POT-Creation-Date: 2014-07-09 15:14+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2014-07-09 15:14+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/po/hello2.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: gettext 3.0.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-09-
|
|
12
|
-
"PO-Revision-Date: 2013-09-
|
|
11
|
+
"POT-Creation-Date: 2013-09-02 23:40+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-09-02 23:40+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/po/hello_glade2.pot
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: gettext 3.
|
|
9
|
+
"Project-Id-Version: gettext 2.3.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date:
|
|
12
|
-
"PO-Revision-Date:
|
|
11
|
+
"POT-Creation-Date: 2012-09-02 11:50+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2012-09-02 11:50+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/po/hello_gtk2.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: gettext 3.0.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-09-
|
|
12
|
-
"PO-Revision-Date: 2013-09-
|
|
11
|
+
"POT-Creation-Date: 2013-09-02 23:40+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-09-02 23:40+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: gettext 3.0.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-09-
|
|
12
|
-
"PO-Revision-Date: 2013-09-
|
|
11
|
+
"POT-Creation-Date: 2013-09-02 23:19+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-09-02 23:19+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/po/hello_noop.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: gettext 3.0.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-09-
|
|
12
|
-
"PO-Revision-Date: 2013-09-
|
|
11
|
+
"POT-Creation-Date: 2013-09-02 23:40+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-09-02 23:40+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/po/hello_plural.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: gettext 3.0.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-09-
|
|
12
|
-
"PO-Revision-Date: 2013-09-
|
|
11
|
+
"POT-Creation-Date: 2013-09-02 23:40+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-09-02 23:40+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/samples/po/hello_tk.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: gettext 3.0.1\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-09-
|
|
12
|
-
"PO-Revision-Date: 2013-09-
|
|
11
|
+
"POT-Creation-Date: 2013-09-02 23:40+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-09-02 23:40+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/test/po/_.pot
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: _ 3.2.
|
|
9
|
+
"Project-Id-Version: _ 3.2.2\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2017-
|
|
12
|
-
"PO-Revision-Date: 2017-
|
|
11
|
+
"POT-Creation-Date: 2017-06-24 12:20+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2017-06-24 12:20+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/test/po/backslash.pot
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
-
# This file is distributed under the same license as the
|
|
3
|
+
# This file is distributed under the same license as the PACKAGE package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version:
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"PO-Revision-Date: 2013-09-03 21:25+0900\n"
|
|
9
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
|
+
"POT-Creation-Date: 2012-08-19 22:58+0900\n"
|
|
11
|
+
"PO-Revision-Date: 2012-08-19 22:58+0900\n"
|
|
13
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
13
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
|
-
"Language: \n"
|
|
16
14
|
"MIME-Version: 1.0\n"
|
|
17
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
16
|
"Content-Transfer-Encoding: 8bit\n"
|
data/test/po/hello.pot
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: hello 3.
|
|
9
|
+
"Project-Id-Version: hello 3.1.7\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date:
|
|
12
|
-
"PO-Revision-Date:
|
|
11
|
+
"POT-Creation-Date: 2015-09-22 14:05+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2015-09-22 14:05+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/test/po/ja/hello.edit.po
CHANGED
data/test/po/non_ascii.pot
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: gettext 3.0.
|
|
9
|
+
"Project-Id-Version: gettext 3.0.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-
|
|
12
|
-
"PO-Revision-Date: 2013-
|
|
11
|
+
"POT-Creation-Date: 2013-08-30 22:00+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-08-30 22:00+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/test/po/np_.pot
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
-
# This file is distributed under the same license as the
|
|
3
|
+
# This file is distributed under the same license as the PACKAGE package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version:
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"PO-Revision-Date: 2013-09-03 21:25+0900\n"
|
|
9
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
|
+
"POT-Creation-Date: 2012-08-19 22:14+0900\n"
|
|
11
|
+
"PO-Revision-Date: 2012-08-19 22:14+0900\n"
|
|
13
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
13
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
|
-
"Language: \n"
|
|
16
14
|
"MIME-Version: 1.0\n"
|
|
17
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
16
|
"Content-Transfer-Encoding: 8bit\n"
|
|
19
17
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
|
20
18
|
|
|
21
|
-
#: ../fixtures/np_.rb:28 ../fixtures/np_.rb:29 ../fixtures/np_.rb:33
|
|
22
|
-
#: ../fixtures/np_.rb:34
|
|
19
|
+
#: ../fixtures/np_.rb:28 ../fixtures/np_.rb:29 ../fixtures/np_.rb:33 ../fixtures/np_.rb:34
|
|
23
20
|
msgctxt "Magazine"
|
|
24
21
|
msgid "a book"
|
|
25
22
|
msgid_plural "%{num} books"
|
data/test/po/ns_.pot
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
-
# This file is distributed under the same license as the
|
|
3
|
+
# This file is distributed under the same license as the PACKAGE package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version:
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"PO-Revision-Date: 2013-09-03 21:25+0900\n"
|
|
9
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
|
+
"POT-Creation-Date: 2012-08-19 22:38+0900\n"
|
|
11
|
+
"PO-Revision-Date: 2012-08-19 22:38+0900\n"
|
|
13
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
13
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
|
-
"Language: \n"
|
|
16
14
|
"MIME-Version: 1.0\n"
|
|
17
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
16
|
"Content-Transfer-Encoding: 8bit\n"
|
data/test/po/p_.pot
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
-
# This file is distributed under the same license as the
|
|
3
|
+
# This file is distributed under the same license as the p_ package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version:
|
|
9
|
+
"Project-Id-Version: p_ 3.1.3\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date:
|
|
12
|
-
"PO-Revision-Date:
|
|
11
|
+
"POT-Creation-Date: 2014-07-09 15:25+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2014-07-09 15:25+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/test/po/s_.pot
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
-
# This file is distributed under the same license as the
|
|
3
|
+
# This file is distributed under the same license as the PACKAGE package.
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
5
|
#
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version:
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"PO-Revision-Date: 2013-09-03 21:25+0900\n"
|
|
9
|
+
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
|
+
"POT-Creation-Date: 2012-08-19 22:25+0900\n"
|
|
11
|
+
"PO-Revision-Date: 2012-08-19 22:25+0900\n"
|
|
13
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
13
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
|
-
"Language: \n"
|
|
16
14
|
"MIME-Version: 1.0\n"
|
|
17
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
16
|
"Content-Transfer-Encoding: 8bit\n"
|
data/test/po/untranslated.pot
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: gettext 3.0.
|
|
9
|
+
"Project-Id-Version: gettext 3.0.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2013-
|
|
12
|
-
"PO-Revision-Date: 2013-
|
|
11
|
+
"POT-Creation-Date: 2013-08-30 22:00+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2013-08-30 22:00+0900\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
data/test/tools/test_msgcat.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
|
|
1
|
+
# Copyright (C) 2014-2018 Kouhei Sutou <kou@clear-code.com>
|
|
2
2
|
#
|
|
3
3
|
# License: Ruby's or LGPL
|
|
4
4
|
#
|
|
@@ -527,6 +527,54 @@ msgstr "Bonjour"
|
|
|
527
527
|
end
|
|
528
528
|
end
|
|
529
529
|
|
|
530
|
+
class TestUpdatePORevisionDate < self
|
|
531
|
+
def setup
|
|
532
|
+
@po_revision_date = "2018-03-05 14:55+0900"
|
|
533
|
+
@po_source = <<-PO
|
|
534
|
+
msgid ""
|
|
535
|
+
msgstr ""
|
|
536
|
+
"Language: ja\\n"
|
|
537
|
+
"PO-Revision-Date: #{@po_revision_date}\\n"
|
|
538
|
+
"MIME-Version: 1.0\\n"
|
|
539
|
+
PO
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
def test_default
|
|
543
|
+
po = run_msgcat([@po_source])
|
|
544
|
+
assert_equal(<<-PO, normalize_result(po))
|
|
545
|
+
msgid ""
|
|
546
|
+
msgstr ""
|
|
547
|
+
"Language: ja\\n"
|
|
548
|
+
"PO-Revision-Date: ORIGINAL-PO-REVISION-DATE\\n"
|
|
549
|
+
"MIME-Version: 1.0\\n"
|
|
550
|
+
PO
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
def test_update_po_revision_date
|
|
554
|
+
po = run_msgcat([@po_source], "--update-po-revision-date")
|
|
555
|
+
assert_equal(<<-PO, normalize_result(po))
|
|
556
|
+
msgid ""
|
|
557
|
+
msgstr ""
|
|
558
|
+
"Language: ja\\n"
|
|
559
|
+
"PO-Revision-Date: UPDATED-PO-REVISION-DATE\\n"
|
|
560
|
+
"MIME-Version: 1.0\\n"
|
|
561
|
+
PO
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
private
|
|
565
|
+
def normalize_result(result)
|
|
566
|
+
result.gsub(/"PO-Revision-Date: (.+?)\\n"/) do
|
|
567
|
+
po_revision_date = $1
|
|
568
|
+
if po_revision_date == @po_revision_date
|
|
569
|
+
new_po_revision_date = "ORIGINAL-PO-REVISION-DATE"
|
|
570
|
+
else
|
|
571
|
+
new_po_revision_date = "UPDATED-PO-REVISION-DATE"
|
|
572
|
+
end
|
|
573
|
+
"\"PO-Revision-Date: #{new_po_revision_date}\\n\""
|
|
574
|
+
end
|
|
575
|
+
end
|
|
576
|
+
end
|
|
577
|
+
|
|
530
578
|
class TestRemoveHeaderField < self
|
|
531
579
|
def setup
|
|
532
580
|
@po_header = <<-PO
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gettext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: locale
|
|
@@ -185,6 +185,7 @@ files:
|
|
|
185
185
|
- lib/gettext/tools/msgmerge.rb
|
|
186
186
|
- lib/gettext/tools/parser/erb.rb
|
|
187
187
|
- lib/gettext/tools/parser/glade.rb
|
|
188
|
+
- lib/gettext/tools/parser/haml.rb
|
|
188
189
|
- lib/gettext/tools/parser/ruby.rb
|
|
189
190
|
- lib/gettext/tools/task.rb
|
|
190
191
|
- lib/gettext/tools/xgettext.rb
|
|
@@ -1679,7 +1680,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1679
1680
|
version: '0'
|
|
1680
1681
|
requirements: []
|
|
1681
1682
|
rubyforge_project: gettext
|
|
1682
|
-
rubygems_version: 2.
|
|
1683
|
+
rubygems_version: 2.7.6
|
|
1683
1684
|
signing_key:
|
|
1684
1685
|
specification_version: 4
|
|
1685
1686
|
summary: Gettext is a pure Ruby libary and tools to localize messages.
|