forked from eclipse-sumo/sumo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing to UTF8, fixing rename on windows eclipse-sumo#11237
- Loading branch information
Showing
7 changed files
with
36 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,21 +7,25 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: sumo\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2022-10-10 07:37+0200\n" | ||
"POT-Creation-Date: 2022-10-11 10:52+0200\n" | ||
"PO-Revision-Date: 2022-10-09 17:46+0200\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=ASCII\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: /home/micha/sumo/src/guisim_main.cpp:59 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\guisim_main.cpp:60 | ||
msgid "GUI version of the microscopic, multi-modal traffic simulation SUMO." | ||
msgstr "" | ||
"Grafische Version der mikroskopischen, multimodalen Verkehrssimulation SUMO." | ||
|
||
#: /home/micha/sumo/src/gui/GUIApplicationWindow.cpp:437 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\guisim_main.cpp:80 | ||
msgid "This system has no OpenGL support. Exiting." | ||
msgstr "Dieses System hat keine OpenGL-Unterstützung. Ende." | ||
|
||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\gui\GUIApplicationWindow.cpp:437 | ||
msgid "&File" | ||
msgstr "&Datei" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: sumo\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2022-10-09 18:08+0200\n" | ||
"POT-Creation-Date: 2022-10-10 18:15+0200\n" | ||
"PO-Revision-Date: 2022-10-09 17:46+0200\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
|
@@ -17,23 +17,23 @@ msgstr "" | |
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:49 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:49 | ||
msgid "Another interrupt signal received, hard exit." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:52 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:52 | ||
msgid "Interrupt signal received, trying to exit gracefully." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:88 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:86 | ||
msgid "A microscopic, multi-modal traffic simulation." | ||
msgstr "Eine mikroskopische, multimodale Verkehrssimulation." | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:116 | ||
#: /home/micha/sumo/src/sumo_main.cpp:125 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:114 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:123 | ||
msgid "Quitting (on error)." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:128 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:126 | ||
msgid "Quitting (on unknown error)." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,20 +7,24 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: sumo\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2022-10-10 07:37+0200\n" | ||
"PO-Revision-Date: 2022-10-09 17:46+0200\n" | ||
"POT-Creation-Date: 2022-10-11 10:52+0200\n" | ||
"PO-Revision-Date: 2022-10-11 10:52+0200\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=ASCII\n" | ||
"Content-Type: text/plain; charset=CP1252\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#: /home/micha/sumo/src/guisim_main.cpp:59 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\guisim_main.cpp:60 | ||
msgid "GUI version of the microscopic, multi-modal traffic simulation SUMO." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/gui/GUIApplicationWindow.cpp:437 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\guisim_main.cpp:80 | ||
msgid "This system has no OpenGL support. Exiting." | ||
msgstr "" | ||
|
||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\gui\GUIApplicationWindow.cpp:437 | ||
msgid "&File" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,33 +7,33 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: sumo\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2022-10-09 18:08+0200\n" | ||
"POT-Creation-Date: 2022-10-10 18:15+0200\n" | ||
"PO-Revision-Date: 2022-10-09 17:46+0200\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=ASCII\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:49 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:49 | ||
msgid "Another interrupt signal received, hard exit." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:52 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:52 | ||
msgid "Interrupt signal received, trying to exit gracefully." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:88 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:86 | ||
msgid "A microscopic, multi-modal traffic simulation." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:116 | ||
#: /home/micha/sumo/src/sumo_main.cpp:125 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:114 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:123 | ||
msgid "Quitting (on error)." | ||
msgstr "" | ||
|
||
#: /home/micha/sumo/src/sumo_main.cpp:128 | ||
#: C:\Users\behr_mi\Projekte\sumo\repos\sumo/src\sumo_main.cpp:126 | ||
msgid "Quitting (on unknown error)." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ def main(args=None): | |
print(f, file=pots[pot_file]) | ||
for pot, sources in pots.items(): | ||
sources.close() | ||
subprocess.check_call([path + "xgettext", "--files-from=" + sources.name, | ||
subprocess.check_call([path + "xgettext", "--files-from=" + sources.name, "--from-code=UTF-8", | ||
"--keyword=TL", "--output=" + pot + ".new", "--package-name=sumo", | ||
"[email protected]"]) | ||
os.remove(sources.name) | ||
|
@@ -67,6 +67,7 @@ def main(args=None): | |
b = [s for s in new.readlines() if not s.startswith(("#", '"POT-Creation-Date:'))] | ||
has_diff = list(difflib.unified_diff(a, b)) | ||
if has_diff: | ||
os.remove(pot) | ||
os.rename(pot + ".new", pot) | ||
else: | ||
os.remove(pot + ".new") | ||
|