gettext 3.4.4 → 3.4.5
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 +4 -4
- data/doc/text/news.md +6 -0
- data/lib/gettext/po_entry.rb +3 -1
- data/lib/gettext/version.rb +2 -2
- data/po/gettext.pot +3 -3
- data/test/test_po_entry.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cea3f2f1c6324088132d87d90494b3110b4ec9f94e442b95e8a606ddcfee037b
|
4
|
+
data.tar.gz: c6c0772f2e800f1bceaf3ba1d02bc2be3c053e684bcfe5a9e478db6b04f37d79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93a5f54b50a7fce2eb7be6475dd3a123d92d9f4c04b11b3e7de9bbcb5290089704997115046599706b8c05a9d781afb4ea7152ad6517a9c47eff1ca580bb46f7
|
7
|
+
data.tar.gz: 3c170cb20251d5df8178cf60f515c8b71da43d51ab7a577cf78f86e478bd2fcc4290c4ce9b6621b4cde4c8f0522e9414592820f3916638cdb2d012288d2ced55
|
data/doc/text/news.md
CHANGED
data/lib/gettext/po_entry.rb
CHANGED
@@ -241,11 +241,13 @@ module GetText
|
|
241
241
|
def escape(string)
|
242
242
|
return "" if string.nil?
|
243
243
|
|
244
|
-
string.gsub(/([\\"\t\n])/) do
|
244
|
+
string.gsub(/([\\"\t\r\n])/) do
|
245
245
|
special_character = $1
|
246
246
|
case special_character
|
247
247
|
when "\t"
|
248
248
|
"\\t"
|
249
|
+
when "\r"
|
250
|
+
"\\r"
|
249
251
|
when "\n"
|
250
252
|
"\\n"
|
251
253
|
else
|
data/lib/gettext/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
version - version information of gettext
|
3
3
|
|
4
|
-
Copyright (C) 2012-
|
4
|
+
Copyright (C) 2012-2023 Sutou Kouhei <kou@clear-code.com>
|
5
5
|
Copyright (C) 2005-2009 Masao Mutoh
|
6
6
|
|
7
7
|
You may redistribute it and/or modify it under the same
|
@@ -9,5 +9,5 @@
|
|
9
9
|
=end
|
10
10
|
|
11
11
|
module GetText
|
12
|
-
VERSION = "3.4.
|
12
|
+
VERSION = "3.4.5"
|
13
13
|
end
|
data/po/gettext.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 3.4.
|
9
|
+
"Project-Id-Version: gettext 3.4.5\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2023-
|
12
|
-
"PO-Revision-Date: 2023-
|
11
|
+
"POT-Creation-Date: 2023-07-12 09:53+0900\n"
|
12
|
+
"PO-Revision-Date: 2023-07-12 09:53+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/test_po_entry.rb
CHANGED
@@ -233,13 +233,15 @@ EOE
|
|
233
233
|
class TestEscape < self
|
234
234
|
def test_normal
|
235
235
|
entry = GetText::POEntry.new(:normal)
|
236
|
-
entry.msgid = "He said \"hello.\""
|
237
|
-
entry.msgstr = "Il a dit \"bonjour.\""
|
236
|
+
entry.msgid = "He said \"hello.\"\r\n"
|
237
|
+
entry.msgstr = "Il a dit \"bonjour.\"\r\n"
|
238
238
|
entry.references = ["file1:1", "file2:10"]
|
239
239
|
expected_po = <<-EOE
|
240
240
|
#: file1:1 file2:10
|
241
|
-
msgid "
|
242
|
-
|
241
|
+
msgid ""
|
242
|
+
"He said \\"hello.\\"\\r\\n"
|
243
|
+
msgstr ""
|
244
|
+
"Il a dit \\"bonjour.\\"\\r\\n"
|
243
245
|
EOE
|
244
246
|
assert_equal(expected_po, entry.to_s)
|
245
247
|
end
|
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.4.
|
4
|
+
version: 3.4.5
|
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: 2023-
|
12
|
+
date: 2023-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erubi
|