ref: refs/heads/master
commit 39575314133cbad17513594d8e0e55a711eee4e6
Author: Stefan Schubert
Date: Thu Oct 1 15:49:39 2009 +0200
cleanup translations in system plugin; use plugin translation in the dev. environment
---
plugins/system/po/de/yast_webclient_system.po | 35 ++++
plugins/system/po/de/yast_webclient_systemtime.po | 49 -----
plugins/system/po/en/yast_webclient_system.po | 35 ++++
plugins/system/po/en/yast_webclient_systemtime.po | 49 -----
webclient/lib/tasks/gettext.rake | 8 +
webclient/po/de/yast_webclient.po | 226 +--------------------
6 files changed, 80 insertions(+), 322 deletions(-)
diff --git a/plugins/system/po/de/yast_webclient_system.po b/plugins/system/po/de/yast_webclient_system.po
new file mode 100644
index 0000000..e11267e
--- /dev/null
+++ b/plugins/system/po/de/yast_webclient_system.po
@@ -0,0 +1,35 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR , YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: yast_webclient system 1.0.0\n"
+"POT-Creation-Date: 2009-09-22 09:42+0200\n"
+"PO-Revision-Date: 2009-09-22 08:56+0200\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+
+#: app/controllers/system_controller.rb:16
+msgid "Rebooting the machine..."
+msgstr ""
+
+#: app/controllers/system_controller.rb:18
+#: app/controllers/system_controller.rb:21
+msgid "Cannot reboot the machine!"
+msgstr ""
+
+#: app/controllers/system_controller.rb:34
+msgid "Shuting down the machine..."
+msgstr ""
+
+#: app/controllers/system_controller.rb:36
+#: app/controllers/system_controller.rb:39
+msgid "Cannot shutdown the machine!"
+msgstr ""
diff --git a/plugins/system/po/de/yast_webclient_systemtime.po b/plugins/system/po/de/yast_webclient_systemtime.po
deleted file mode 100644
index b10e0c4..0000000
--- a/plugins/system/po/de/yast_webclient_systemtime.po
+++ /dev/null
@@ -1,49 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR , YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: yast_webclient systemtime 1.0.0\n"
-"POT-Creation-Date: 2009-05-04 13:02+0200\n"
-"PO-Revision-Date: 2009-05-04 13:02+0200\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: LANGUAGE \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: app/controllers/system_time_controller.rb:39
-msgid "Settings have been written."
-msgstr "Einstellungen wurden gespeichert."
-
-#: app/views/system_time/index.rhtml:2
-msgid "Configure time"
-msgstr "Zeiteinstellungen"
-
-#: app/views/system_time/index.rhtml:14
-msgid "Timezone:"
-msgstr "Zeitzone:"
-
-#: app/views/system_time/index.rhtml:20
-msgid "UTC (Universal Time Coordinated)"
-msgstr ""
-
-#: app/views/system_time/index.rhtml:24
-msgid "Date"
-msgstr "Datum"
-
-#: app/views/system_time/index.rhtml:30
-msgid "Time"
-msgstr "Zeit"
-
-#: app/views/system_time/index.rhtml:36
-msgid "Save"
-msgstr "Speichern"
-
-#: app/views/system_time/index.rhtml:37
-msgid "Back"
-msgstr "Zurück"
diff --git a/plugins/system/po/en/yast_webclient_system.po b/plugins/system/po/en/yast_webclient_system.po
new file mode 100644
index 0000000..e11267e
--- /dev/null
+++ b/plugins/system/po/en/yast_webclient_system.po
@@ -0,0 +1,35 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR , YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: yast_webclient system 1.0.0\n"
+"POT-Creation-Date: 2009-09-22 09:42+0200\n"
+"PO-Revision-Date: 2009-09-22 08:56+0200\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+
+#: app/controllers/system_controller.rb:16
+msgid "Rebooting the machine..."
+msgstr ""
+
+#: app/controllers/system_controller.rb:18
+#: app/controllers/system_controller.rb:21
+msgid "Cannot reboot the machine!"
+msgstr ""
+
+#: app/controllers/system_controller.rb:34
+msgid "Shuting down the machine..."
+msgstr ""
+
+#: app/controllers/system_controller.rb:36
+#: app/controllers/system_controller.rb:39
+msgid "Cannot shutdown the machine!"
+msgstr ""
diff --git a/plugins/system/po/en/yast_webclient_systemtime.po b/plugins/system/po/en/yast_webclient_systemtime.po
deleted file mode 100644
index 1bdcc7e..0000000
--- a/plugins/system/po/en/yast_webclient_systemtime.po
+++ /dev/null
@@ -1,49 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR , YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: yast_webclient systemtime 1.0.0\n"
-"POT-Creation-Date: 2009-05-04 13:02+0200\n"
-"PO-Revision-Date: 2009-05-04 13:02+0200\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: LANGUAGE \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: app/controllers/system_time_controller.rb:39
-msgid "Settings have been written."
-msgstr ""
-
-#: app/views/system_time/index.rhtml:2
-msgid "Configure time"
-msgstr ""
-
-#: app/views/system_time/index.rhtml:14
-msgid "Timezone:"
-msgstr ""
-
-#: app/views/system_time/index.rhtml:20
-msgid "UTC (Universal Time Coordinated)"
-msgstr ""
-
-#: app/views/system_time/index.rhtml:24
-msgid "Date"
-msgstr ""
-
-#: app/views/system_time/index.rhtml:30
-msgid "Time"
-msgstr ""
-
-#: app/views/system_time/index.rhtml:36
-msgid "Save"
-msgstr ""
-
-#: app/views/system_time/index.rhtml:37
-msgid "Back"
-msgstr ""
diff --git a/webclient/lib/tasks/gettext.rake b/webclient/lib/tasks/gettext.rake
index ac60f65..c53adf6 100644
--- a/webclient/lib/tasks/gettext.rake
+++ b/webclient/lib/tasks/gettext.rake
@@ -1,11 +1,19 @@
#
# Added for Ruby-GetText-Package
#
+require 'fileutils'
desc "Create mo-files for L10n"
task :makemo do
require 'gettext_rails/tools'
GetText.create_mofiles
+ destdir = File.join(File.dirname(__FILE__),"../../..", "webclient", "public", "vendor", "text")
+ if File.directory?(destdir)
+ # I am a plugin. In order to get the translation available the concerning mo files have to be
+ # available in webservice/public/vendor/text/locale. That is needed in the development environment ONLY.
+ srcdir = File.join(Dir.pwd,"locale")
+ FileUtils.cp_r(srcdir, destdir) if File.directory?(srcdir)
+ end
end
desc "Update pot/po files to match new version."
diff --git a/webclient/po/de/yast_webclient.po b/webclient/po/de/yast_webclient.po
index 76d2b90..a1df190 100644
--- a/webclient/po/de/yast_webclient.po
+++ b/webclient/po/de/yast_webclient.po
@@ -301,18 +301,16 @@ msgid "Loading patch information"
msgstr ""
#: app/views/controlpanel/index.rhtml:45
-#, fuzzy
msgid "Patch plugin is not installed."
-msgstr "Patch wurde installiert."
+msgstr "Patch Plugin ist nicht installiert"
#: app/views/controlpanel/index.rhtml:51
msgid "Loading system information"
msgstr ""
#: app/views/controlpanel/index.rhtml:53
-#, fuzzy
msgid "Status plugin is not installed."
-msgstr "Patch wurde installiert."
+msgstr "Status Plugin ist nicht installiert."
#: app/views/controlpanel/index.rhtml:92
msgid "Show all modules"
@@ -322,223 +320,3 @@ msgstr ""
msgid "Noone is logged to rest service."
msgstr ""
-#~ msgid "URL"
-#~ msgstr "URL"
-
-#~ msgid "Update"
-#~ msgstr "Speichern"
-
-#~ msgid "New YaST-Web-Service"
-#~ msgstr "YaST-Web-Service anlegen"
-
-#~ msgid "Services"
-#~ msgstr "Systemdienste"
-
-#~ msgid "Language"
-#~ msgstr "Sprache"
-
-#~ msgid "Users"
-#~ msgstr "Benutzer"
-
-#~ msgid "Permissions"
-#~ msgstr "Zugriffsrechte"
-
-#~ msgid "Patches"
-#~ msgstr "Update"
-
-#~ msgid "Session"
-#~ msgstr "Sitzung"
-
-#~ msgid "Login Failed"
-#~ msgstr "Anmeldung fehlgeschlagen"
-
-#~ msgid "Connect"
-#~ msgstr "Verbinden"
-
-#~ msgid "Permission has been granted."
-#~ msgstr "Das Recht wurde gegeben."
-
-#~ msgid "Permission has been revoked."
-#~ msgstr "Das Recht wurde entzogen."
-
-#~ msgid "Available Patches"
-#~ msgstr "Verfügbare Update"
-
-#~ msgid "Kind"
-#~ msgstr "Typ"
-
-#~ msgid "Summary"
-#~ msgstr "Zusammenfassung"
-
-#~ msgid "Source"
-#~ msgstr "Quelle"
-
-#~ msgid "Install"
-#~ msgstr "Installiere"
-
-#~ msgid "YaST-Web-Services"
-#~ msgstr "YaST-Web-Services"
-
-#~ msgid "<strong>[New YaST-Web-Service]</strong>"
-#~ msgstr "<strong>[Neuer YaST-Web-Service]</strong>"
-
-#~ msgid "<strong>[Configure]</strong>"
-#~ msgstr "<strong>[konfigurieren]</strong>"
-
-#~ msgid "Choose host"
-#~ msgstr "Rechner auswählen"
-
-#~ msgid "INFO"
-#~ msgstr "INFO"
-
-#~ msgid "This is a sample web-UI for YaST-as-a-webservice."
-#~ msgstr ""
-#~ "Dies ist ein Beispielprogramm zur Demonstration der YaST-REST-"
-#~ "Schnittstelle"
-
-#~ msgid "Authors"
-#~ msgstr "Autoren"
-
-#~ msgid "Others"
-#~ msgstr "Andere"
-
-#~ msgid "Links"
-#~ msgstr "Links"
-
-#~ msgid "About YaST"
-#~ msgstr "Über YaST"
-
-#~ msgid "About Rails"
-#~ msgstr "Über Rails"
-
-#~ msgid "About used CSS"
-#~ msgstr "Benutztes CSS"
-
-#~ msgid "About used icons"
-#~ msgstr "Benutzte Icons"
-
-#~ msgid "About PolicyKit"
-#~ msgstr "Über PolicyKit"
-
-#~ msgid "User Permissions"
-#~ msgstr "Zugriffsrechte"
-
-#~ msgid "Search"
-#~ msgstr "Suche"
-
-#~ msgid "Revoked Permissions"
-#~ msgstr "Gesperrte Rechte"
-
-#~ msgid "Granted Permissions"
-#~ msgstr "Zulässige Rechte"
-
-#~ msgid "Settings have been written."
-#~ msgstr "Einstellungen wurden gespeichert."
-
-#~ msgid "failed"
-#~ msgstr "fehlgeschlagen"
-
-#~ msgid "success"
-#~ msgstr "erfolgreich"
-
-#~ msgid "User was successfully created."
-#~ msgstr "Benutzer wurde angelegt."
-
-#~ msgid "SSH-Key was successfully exported."
-#~ msgstr "SSH-Schlüssel wurde exportiert."
-
-#~ msgid "User was successfully updated."
-#~ msgstr "Benutzereinstellungen wurde verändert."
-
-#~ msgid "Local User"
-#~ msgstr "Lokale Benutzer"
-
-#~ msgid "SSH-Key"
-#~ msgstr "SSH-Schlüssel"
-
-#~ msgid "<strong>[New User]</strong>"
-#~ msgstr "<strong>[Neuer Benutzer]</strong>"
-
-#~ msgid "Edit User"
-#~ msgstr "Benutzer ändern"
-
-#~ msgid "Full Name"
-#~ msgstr "Kompletter Name"
-
-#~ msgid "Groups"
-#~ msgstr "Gruppen"
-
-#~ msgid "Default Group"
-#~ msgstr "Standardgruppe"
-
-#~ msgid "Home Directory"
-#~ msgstr "Home-Verzeichnis"
-
-#~ msgid "Login Shell"
-#~ msgstr "Login Shell"
-
-#~ msgid "Login Name"
-#~ msgstr "Login Name"
-
-#~ msgid "UID"
-#~ msgstr "UID"
-
-#~ msgid "New User"
-#~ msgstr "Neuer Benutzer"
-
-#~ msgid "do NOT create home directory"
-#~ msgstr "Home-Verzeichnis nicht anlegen"
-
-#~ msgid "Export SSH-Key"
-#~ msgstr "SSH-Schlüssel exportieren"
-
-#~ msgid "SHH Key"
-#~ msgstr "SSH-Schlüssel"
-
-#~ msgid "NTP Server"
-#~ msgstr "NTP Server"
-
-#~ msgid "Settings"
-#~ msgstr "Einstellungen"
-
-#~ msgid "Enabled"
-#~ msgstr "Aktiviert"
-
-#~ msgid "Use random server"
-#~ msgstr "Verwende zufälligen Server"
-
-#~ msgid "Manual Servers"
-#~ msgstr "Feste Server"
-
-#~ msgid "Service Call Result"
-#~ msgstr "Ergebnis"
-
-#~ msgid "Result"
-#~ msgstr "Ergebnis"
-
-#~ msgid "Timezone"
-#~ msgstr "Zeitzone"
-
-#~ msgid "UTC (Universal Time Coordinated)"
-#~ msgstr "UTC (Universal Time Coordinated)"
-
-#~ msgid "Day"
-#~ msgstr "Tag"
-
-#~ msgid "Month"
-#~ msgstr "Monat"
-
-#~ msgid "Year"
-#~ msgstr "Jahr"
-
-#~ msgid "Time"
-#~ msgstr "Zeit"
-
-#~ msgid "First Language"
-#~ msgstr "Hauptsprache"
-
-#~ msgid "Second Languages"
-#~ msgstr "zusätzliche Sprachen"
-
-#~ msgid "This operation can take a while."
-#~ msgstr "Dies kann ein wenig dauern...."
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org