Hi
I'm new to JFreeChart... I've noticed when I've used a chart in my application that when I click with the right button on the chart I get a popup menu with properties, zoom, etc.
I want to internationalize this popup menu and the properties dialog. Is it possible or will I need to create another popup menu that does the same thing but internationalized?
thanks in advance
Internationalization
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The popup menu and properties dialog should display localised strings already. If your locale isn't supported, perhaps you need to add a LocalizationBundle_xx.properties file to the org.jfree.chart.* package.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Right.. you only have portuguese from Portugal...
here it is the brazilian portuguese translation, made by myself
and the other file:
If someone else has corrections, please let me know...
here it is the brazilian portuguese translation, made by myself

Code: Select all
# org.jfree.chart.ChartPanel ResourceBundle properties file - portuguese version
#
# Changes (from 24-May-2007)
# --------------------------
# 24-May-2007 : Initial version (Leonardo Alves Machado)
#
\:=\ :
Appearance=Geral
Auto-adjust_range=Eixos auto-ajust\u00E1veis :
Background=Fundo :
Background_Color=Cor de fundo
Background_paint=Cor de fundo :
Color=Cor :
Color_Bar=Cor da barra
Domain_Axis=Eixo das abcissas
Draw_anti-aliased=Anti-aliasing
Edit...=Editar...
Edit_Insets=Regular a posi\u00E7\u00E3o
Font=Fonte :
Font_Selection=Sele\u00E7\u00E3o da fonte
General=Geral :
Grid_Color=Cor da grade
Insets=Posi\u00E7\u00E3o :
Invert_Palette=Inverter o palete :
Label=R\u00F3tulo :
Label_Color=Cor do r\u00F3tulo
Label_Insets=Posi\u00E7\u00E3o do r\u00F3tulo :
Legend=Legenda
Maximum_range_value=Valor m\u00E1ximo do eixo :
Minimum_range_value=Valor m\u00EDnimo do eixo :
No_editor_implemented=Editor n\u00E3o dispon\u00EDvel
Other=Outro
Outline=Borda :
Outline_Paint=Cor da borda :
Outline_Color=Cor da borda
Outline_stroke=Estilo do tra\u00E7o da borda :
Paint=Cor :
Palette=Palete :
Palette_Selection=Sele\u00E7\u00E3o do palete
Pen_Stroke_Selection=Sele\u00E7\u00E3o de tra\u00E7o
Plot=Tra\u00E7o
Range=Intervalo
Range_Axis=Eixo das ordenadas
Select...=Selecionar...
Series_Label_Color=Cor do r\u00F3tulo das s\u00E9ries
Series_label_font=Fonte do r\u00F3tulo das s\u00E9ries :
Series_label_paint=Cor do r\u00F3tulo das s\u00E9ries :
Series_Outline_Paint=Cor da borda das s\u00E9ries :
Series_Outline_Stroke=Estilo do tra\u00E7o da borda :
Series_Paint=Cor da s\u00E9ries :
Series_Stroke=Estilo do tra\u00E7o das s\u00E9ries :
Show_tick_labels=Visualizar r\u00F3tulos de gradua\u00E7\u00E3o de escala
Show_tick_marks=Visualizar marcas de gradua\u00E7\u00E3o de escala
Set_palette...=Escolha do palete...
Step_Palette=Espaçamento do palete :
Stroke_Selection=Sele\u00E7\u00E3o do tra\u00E7o
Text=Texto :
Tick_label_font=Fonte dos r\u00F3tulos de gradua\u00E7\u00E3o de escala :
Tick_Label_Insets=Posi\u00E7\u00E3o dos r\u00F3tulos de gradua\u00E7\u00E3o de escala :
Ticks=R\u00F3tulos de gradua\u00E7\u00E3o de escala
Title_Color=Cor do t\u00EDtulo
Code: Select all
# org.jfree.chart.ChartPanel ResourceBundle properties file - portuguese version
#
# Changes (from 24-May-2007)
# --------------------------
# 24-May-2007 : Initial version (Leonardo Alves Machado);
#
Auto_Range=Escala autom\u00E1tica
All_Axes=Todos os eixos
Chart_Properties=Propriedades do gr\u00E1fico
Copy=Copiar
Domain_Axis=Eixo horizontal
PNG_Image_Files=Formato PNG (Portable Network Graphics) (*.png)
Print...=Imprimir...
Properties...=Propriedades...
Save_as...=Salvar como...
Range_Axis=Eixo vertical
Zoom_In=Ampliar
Zoom_Out=Reduzir
Leo
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Great, thanks! I'm finishing for the day, but I'll try to get this committed tomorrow.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Committed to CVS for inclusion in the 1.0.6 release.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Hi leo77,
thks for providing pt_BR translations for JFC, our customers have just requested this, perfect timing
(I was actually surprised when I tried it with JFC 1.0.6 and it "just worked"
)
David: thks (again) for your continued support on JFC, keep up the great work
There are though some small glitches:
- some translations already include the ":", which generates some weird results (eg. many TitleBorders carry ":" with them). IMHO ":" should be added by the code whenever necessary, and not be included on the resource bundles to avoid messing up with titles. Also, it creates inconsistencies: resource bundle strings are shown as "Label :" while untranslated strings are shown as "Label:" (no space before double-colon).
- some labels are still not localized eg. "Title" ("T\u00EDtulo"), "Show Title" ("Exibir T\u00EDtulo") and "Orientation" ("Orienta\u00E7\u00E3o") on chart preferences dialog.
I realized that ./org/jfree/chart/plot/LocalizationBundle_pt_BR.properties is missing. Here goes my contribution
(don't know how to translate "Period_Marker_Plot" and "Contour_Plot", though
I'll try to find out)
Also, please note that "abscissa" is spelled wrong on the other pt_BR bundles (first "s" is missing).
HTH
Regards,
Andre
thks for providing pt_BR translations for JFC, our customers have just requested this, perfect timing


David: thks (again) for your continued support on JFC, keep up the great work

There are though some small glitches:
- some translations already include the ":", which generates some weird results (eg. many TitleBorders carry ":" with them). IMHO ":" should be added by the code whenever necessary, and not be included on the resource bundles to avoid messing up with titles. Also, it creates inconsistencies: resource bundle strings are shown as "Label :" while untranslated strings are shown as "Label:" (no space before double-colon).
- some labels are still not localized eg. "Title" ("T\u00EDtulo"), "Show Title" ("Exibir T\u00EDtulo") and "Orientation" ("Orienta\u00E7\u00E3o") on chart preferences dialog.
I realized that ./org/jfree/chart/plot/LocalizationBundle_pt_BR.properties is missing. Here goes my contribution

Code: Select all
# org.jfree.chart.ChartPanel ResourceBundle properties file - Brazilian portuguese version
#
# Changes (from 08-Aug-2007)
# --------------------------
# 08-Aug-2007 : Initial version (Andre Costa);
#
Category_Plot=Barras
Combined_Domain_XYPlot=Curvas combinadas pela abscissa
Combined_Range_XYPlot=Curvas combinadas pela ordenada
Compass_Plot=Compasso
Contour_Plot=Contours
Fast_Scatter_Plot=Dispers\u00E3o
Meter_Plot=N\u00EDvel
Period_Marker_Plot=Period Marker Plot
Pie_Plot=Setores
Thermometer_Plot=Term\u00a2metro
XY_Plot=Curvas
Pie_3D_Plot=Setores 3D

Also, please note that "abscissa" is spelled wrong on the other pt_BR bundles (first "s" is missing).
HTH
Regards,
Andre