Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adding directory for translations of the omc kernel
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12388 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
4 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
srcdir = .. | ||
top_builddir = ../.. | ||
localedir = $(top_builddir)/build/share/locale/ | ||
locales = sv en_GB | ||
|
||
release: | ||
for locale in $(locales); do mkdir -p $(localedir)/$$locale/LC_MESSAGES && msgfmt -o$(localedir)/$$locale/LC_MESSAGES/openmodelica.mo $$locale.po; done | ||
update: | ||
xgettext --msgid-bugs-address=openmodelica@ida.liu.se --copyright-holder="Open Source Modelica Consortium (OSMC)" --package-name=OpenModelica --package-version=trunk -oopenmodelica.pot -LC++ --from-code=UTF-8 $(ALL_DIRS:%=%/*.mo) $(TEMPLATE_DIR:%=%/*.tpl) | ||
sed -i s/CHARSET/UTF-8/ openmodelica.pot | ||
|
||
merge-all: | ||
for f in $(locales); do msgmerge -U $$f.po openmodelica.pot; done | ||
|
||
include ../Makefile.common |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
GetText guide: | ||
|
||
# Setup a new translation target | ||
make update | ||
msginit --locale=sv_SE.utf8 -i openmodelica.pot | ||
svn add sv.po | ||
|
||
# To update a translation file | ||
msgmerge -U sv.po openmodelica.pot | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR Open Source Modelica Consortium (OSMC) | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: OpenModelica trunk\n" | ||
"Report-Msgid-Bugs-To: openmodelica@ida.liu.se\n" | ||
"POT-Creation-Date: 2012-08-01 14:20+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: ../Main/Main.mo:1114 | ||
msgid "You are trying to run OpenModelica as root.\n" | ||
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Swedish translations for OpenModelica package | ||
# Svenska översättningar för paket OpenModelica. | ||
# Copyright (C) 2012 Open Source Modelica Consortium (OSMC) | ||
# This file is distributed under the same license as the OpenModelica package. | ||
# Martin Sjölund <martin.sjolund@liu.se>, 2012. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: OpenModelica trunk\n" | ||
"Report-Msgid-Bugs-To: openmodelica@ida.liu.se\n" | ||
"POT-Creation-Date: 2012-08-01 14:20+0200\n" | ||
"PO-Revision-Date: 2012-08-01 15:35+0200\n" | ||
"Last-Translator: Martin Sjölund <martin.sjolund@liu.se>\n" | ||
"Language-Team: Swedish\n" | ||
"Language: sv\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: ../Main/Main.mo:1114 | ||
msgid "You are trying to run OpenModelica as root.\n" | ||
msgstr "" |