Merge lp:~ttosttos/pantheon-terminal/fix-1004294 into lp:~elementary-apps/pantheon-terminal/trunk

Proposed by ttosttos
Status: Merged
Merged at revision: 203
Proposed branch: lp:~ttosttos/pantheon-terminal/fix-1004294
Merge into: lp:~elementary-apps/pantheon-terminal/trunk
Diff against target: 56 lines (+15/-1)
4 files modified
data/pantheon-terminal.desktop (+1/-1)
po/es.po (+5/-0)
po/it.po (+4/-0)
po/pantheon-terminal.pot (+5/-0)
To merge this branch: bzr merge lp:~ttosttos/pantheon-terminal/fix-1004294
Reviewer Review Type Date Requested Status
Mario Guerriero (community) Approve
David Gomes (community) Approve
Review via email: mp+107330@code.launchpad.net

Description of the change

Launcher now uses X-GNOME-Gettext-Domain key. Gettext template updated to allow contributor translation of the "comment" key in the launcher.

To post a comment you must log in.
Revision history for this message
David Gomes (davidgomes) wrote :

Nice one.

review: Approve
Revision history for this message
Mario Guerriero (mefrio-g) wrote :

This patch wasn't merged and however it doesn't work at all. The .pot template must be updated manually but it shouldn't be so. In fact to update .pot templates you sohuld be easilly run "make pot" instead of add manually a new string each time it is added to the code

review: Needs Fixing
Revision history for this message
Corentin Noël (tintou) wrote :

What I did into Maya is to add this into the main vala file :

    internal void desktop_translations () {
        // maya.desktop:6
        var comment = _("View and schedule events");
        // maya.desktop:5
        var generic_name = _("Calendar");
        // maya.desktop:18
        var add_event = _("_Add Event");
    }

And it works (at least in Slingshot because it seems that plank don't accept X-GNOME-Gettext-Domain).

Revision history for this message
Mario Guerriero (mefrio-g) wrote :

So with no addictional code lines the desktop file will be automatically translated?

Revision history for this message
Mario Guerriero (mefrio-g) wrote :

Corentin confirmed my answer so I can merge it

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/pantheon-terminal.desktop'
--- data/pantheon-terminal.desktop 2012-05-17 18:29:15 +0000
+++ data/pantheon-terminal.desktop 2012-05-25 06:22:19 +0000
@@ -1,13 +1,13 @@
1[Desktop Entry]1[Desktop Entry]
2Name=Terminal2Name=Terminal
3Comment=Use the command line3Comment=Use the command line
4Comment[it]=Usa la riga di comando
5TryExec=pantheon-terminal4TryExec=pantheon-terminal
6Exec=pantheon-terminal5Exec=pantheon-terminal
7Icon=utilities-terminal6Icon=utilities-terminal
8Type=Application7Type=Application
9Categories=GTK;Utility;TerminalEmulator;8Categories=GTK;Utility;TerminalEmulator;
10StartupNotify=true9StartupNotify=true
10X-GNOME-Gettext-Domain=pantheon-terminal
1111
12X-Ayatana-Desktop-Shortcuts=NewWindow;NewRootWindow12X-Ayatana-Desktop-Shortcuts=NewWindow;NewRootWindow
1313
1414
=== modified file 'po/es.po' (properties changed: -x to +x)
--- po/es.po 2012-05-08 05:37:08 +0000
+++ po/es.po 2012-05-25 06:22:19 +0000
@@ -112,3 +112,8 @@
112#: /home/mario/elementary/pantheon-terminal/po/../src/PantheonTerminalWindow.vala:344112#: /home/mario/elementary/pantheon-terminal/po/../src/PantheonTerminalWindow.vala:344
113msgid "Select tab 1"113msgid "Select tab 1"
114msgstr "Seleccionar pestaña 1"114msgstr "Seleccionar pestaña 1"
115
116#: pantheon-terminal.desktop:3
117msgid "Use the command line"
118msgstr "Usar la línea de comandos"
119
115120
=== modified file 'po/it.po' (properties changed: -x to +x)
--- po/it.po 2012-05-14 05:19:42 +0000
+++ po/it.po 2012-05-25 06:22:19 +0000
@@ -112,3 +112,7 @@
112#: /home/mario/elementary/pantheon-terminal/po/../src/PantheonTerminalWindow.vala:344112#: /home/mario/elementary/pantheon-terminal/po/../src/PantheonTerminalWindow.vala:344
113msgid "Select tab 1"113msgid "Select tab 1"
114msgstr "Seleziona scheda 1"114msgstr "Seleziona scheda 1"
115
116#: pantheon-terminal.desktop:3
117msgid "Use the command line"
118msgstr "Usa la riga di comando"
115119
=== modified file 'po/pantheon-terminal.pot' (properties changed: -x to +x)
--- po/pantheon-terminal.pot 2012-05-02 15:05:48 +0000
+++ po/pantheon-terminal.pot 2012-05-25 06:22:19 +0000
@@ -112,3 +112,8 @@
112#: /home/mario/elementary/pantheon-terminal/po/../src/PantheonTerminalWindow.vala:344112#: /home/mario/elementary/pantheon-terminal/po/../src/PantheonTerminalWindow.vala:344
113msgid "Select tab 1"113msgid "Select tab 1"
114msgstr ""114msgstr ""
115
116#: pantheon-terminal.desktop:3
117msgid "Use the command line"
118msgstr ""
119

Subscribers

People subscribed via source and target branches