Localization

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Thu Oct 11 06:51:21 PDT 2012


Den 11.10.12 15:00, skrev Henrik Brautaset Aronsen:
>> Looking at this in more detail I realized that the menu entries that
>> aren't localized in Norwegian are the ones where we use GTK_STOCK_xxx
>> and then NULL as text for the menu entry. Apparently those default texts
>> are missing from Gtk's Norwegian localization? It would be easy enough
>> to simply have all the texts there and localize them, I guess.
>
> Nice find! I'll add them.

Easier said than done.  I tried adding them (see the attached patch), 
but I couldn't see any changes in the menus.

I really hope we don't have to make Apple specific translations in 
Subsurface.app/Resource/$lang.nproj/

H
-------------- next part --------------
From 892e918c3c6b6a791f7da84cbdc2b451637a4e85 Mon Sep 17 00:00:00 2001
From: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
Date: Thu, 11 Oct 2012 15:48:10 +0200
Subject: [PATCH] Add stock GTK message strings

The stock GTK messages weren't translated automatically in Norwegian.

Signed-off-by: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
---
 po/no_NO.po | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/po/no_NO.po b/po/no_NO.po
index 44a93f7..16b3074 100644
--- a/po/no_NO.po
+++ b/po/no_NO.po
@@ -968,3 +968,71 @@ msgstr "ikke spesifisert"
 #: equipment.c:1514
 msgid "weight"
 msgstr "vekt"
+
+#: GTK_STOCK_ABOUT
+msgid "gtk-about"
+msgstr "Om"
+
+#: GTK_STOCK_ADD
+msgid "gtk-add"
+msgstr "Legg til"
+
+#: GTK_STOCK_CANCEL
+msgid "gtk-cancel"
+msgstr "Avbryt"
+
+#: GTK_STOCK_CLOSE
+msgid "gtk-close"
+msgstr "Lukk"
+
+#: GTK_STOCK_DELETE
+msgid "gtk-delete"
+msgstr "Slett"
+
+#: GTK_STOCK_EDIT
+msgid "gtk-edit"
+msgstr "Rediger"
+
+#: GTK_STOCK_GO_BACK
+msgid "gtk-go-back"
+msgstr "Gå tilbake"
+
+#: GTK_STOCK_GO_DOWN
+msgid "gtk-go-down"
+msgstr "Gå ned"
+
+#: GTK_STOCK_NEW
+msgid "gtk-new"
+msgstr "Ny"
+
+#: GTK_STOCK_NO
+msgid "gtk-no"
+msgstr "Nei"
+
+#: GTK_STOCK_OK
+msgid "gtk-ok"
+msgstr "OK"
+
+#: GTK_STOCK_OPEN
+msgid "gtk-open"
+msgstr "Åpne"
+
+#: GTK_STOCK_PREFERENCES
+msgid "gtk-preferences"
+msgstr "Valg"
+
+#: GTK_STOCK_PRINT
+msgid "gtk-print"
+msgstr "Skriv ut"
+
+#: GTK_STOCK_QUIT
+msgid "gtk-quit"
+msgstr "Avslutt"
+
+#: GTK_STOCK_SAVE
+msgid "gtk-save"
+msgstr "Lagre"
+
+#: GTK_STOCK_SAVE_AS
+msgid "gtk-save-as"
+msgstr "Lagre som"
-- 
1.7.11.5


More information about the subsurface mailing list