gvSIG bugs #2655

Notications mode (Preferences) is not translatable

Added by Antonio Falciano almost 10 years ago. Updated over 9 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:Joaquín del Cerro Murciano
Category:-
Target version:2.1.0-2251-testing
Severity:Minor Add-on version:
gvSIG version:2.1.0 Add-on build:
gvSIG build:2233 Add-on resolve version:
Operative System: Add-on resolve build:
Keywords:translations, i18n Proyecto:
Has patch:Yes Hito:
Add-on name:Unknown

notifications.png (25.4 KB) Antonio Falciano, 07/09/2014 04:31 AM

NotificationsPage.patch Magnifier (2.6 KB) Antonio Falciano, 10/16/2014 06:08 AM

927

Associated revisions

Revision 41776
Added by Joaquín del Cerro Murciano over 9 years ago

Añadidas traducciones a la pagina de preferencias de Notificaciones. refs #2655

History

#1 Updated by Álvaro Anguix almost 10 years ago

  • Assignee set to Mario Carrera

#2 Updated by Antonio Falciano over 9 years ago

Has patch: Yes

#3 Updated by Álvaro Anguix over 9 years ago

  • Has patch set to Yes
  • Assignee changed from Mario Carrera to Joaquín del Cerro Murciano

#4 Updated by Joaquín del Cerro Murciano over 9 years ago

  • Target version changed from 2.1.0-2259-rc3 to 2.1.0-2251-testing
  • Status changed from New to Fixed

Hola Antonio,
a la hora de usar las traducciones en gvSIG 2, en lugar de usar "PluginServices.getText"
es rcomendable usar el metodo getTranslation del I18nManeger. Por ejemplo, en lugar de:

     public String getTitle() {
        return PluginServices.getText(this, "notifications_mode");
     }

Usar:


    public String getTitle() {
        I18nManager i18nManager = ToolsLocator.getI18nManager();
        return i18nManager.getTranslation("notifications_mode");
    }

;)

#5 Updated by Antonio Falciano over 9 years ago

Hi Joaquín, you're right. I was (wrongly) inspired by the other preference pages. :P

#6 Updated by Antonio Falciano over 9 years ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF