Skip to content

Commit

Permalink
- Adding directory for translations of the omc kernel
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12388 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 1, 2012
1 parent ca6738c commit c4c5f0e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Compiler/Translation/Makefile
@@ -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
10 changes: 10 additions & 0 deletions Compiler/Translation/README
@@ -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

22 changes: 22 additions & 0 deletions Compiler/Translation/openmodelica.pot
@@ -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 ""
23 changes: 23 additions & 0 deletions Compiler/Translation/sv.po
@@ -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 ""

0 comments on commit c4c5f0e

Please sign in to comment.