Recent

Author Topic: is italian language editor still supported ?  (Read 729 times)

Paolo

  • Sr. Member
  • ****
  • Posts: 333
is italian language editor still supported ?
« on: August 10, 2022, 05:20:46 pm »
my question is more out of curiosity (since i think I'll switch to English language), but many menus in the editor (when italian language is selected) show half of the menu in italian language and the lower half in english language (See one of them in the picture).

AlexTP

  • Hero Member
  • *****
  • Posts: 1961
    • UVviewsoft
Re: is italian language editor still supported ?
« Reply #1 on: August 10, 2022, 05:29:05 pm »
If I see into 'lazarus/languages/lazaruside.it.po', I see

"PO-Revision-Date: 2015-01-12 00:43+0200\n"
"Last-Translator: Giuliano Colla <giuliano.colla_fastwebnet.it>\n"

So you are welcome to make the update for us.
Wiki must have the info, how to do it...

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #2 on: August 10, 2022, 06:25:06 pm »
thanks AlexTP. Now I know where to look.

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #3 on: August 10, 2022, 06:57:20 pm »
 AlexTP, it is very easy correct/complete the text. But I have not found in the wiki where/how to submit the updated file, do you have some link to share ?

AlexTP

  • Hero Member
  • *****
  • Posts: 1961
    • UVviewsoft
Re: is italian language editor still supported ?
« Reply #4 on: August 10, 2022, 07:19:43 pm »
On the left side <<<<< of this forum, see
 Bugtracker
and post your patch there.

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #5 on: August 11, 2022, 04:05:56 pm »
Okay, I see the file, do I have to write manually each messages with a text editor or there is some "ad-hoc" tool ?

I see in the italian file a row with : "X-Generator: Virtaal 0.6.1\n"
and for example for the france :   "X-Generator: Poedit 1.7.6\n"

are these tool usable (And free) ?

what do you seggest ?
 

Bart

  • Hero Member
  • *****
  • Posts: 4827
    • Bart en Mariska's Webstek
Re: is italian language editor still supported ?
« Reply #6 on: August 11, 2022, 04:20:30 pm »
Poedit is free.
You can also use any texteditor (e.g. the Lazarus IDE, which has a po-highlighter).
For .po files the policy is to attach the whole file, not the diff (at least that was so in the past), I don't know why.

Bart

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #7 on: August 11, 2022, 04:41:15 pm »
thanks, Lazarus editor is fine...

The Italian language is very verbose    :(, some English words don't really have an Italian counterpart  %).

Just started...

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #8 on: August 11, 2022, 04:46:39 pm »
a first search on Italian empty msgstr gives a number > 700  %)

wp

  • Hero Member
  • *****
  • Posts: 10291
Re: is italian language editor still supported ?
« Reply #9 on: August 11, 2022, 05:00:13 pm »
You find the translation of the IDE strings in the files lazaruside.<code>.po and debuggerstrconst.<code>.po in folder languages of your lazarus installation. The LCL strings are in file lclstrconsts.<code>.po in folder lcl/languages. And many components have their translations in their own directory (e.g. TAChart in components/tachart/languages/tachartstrconsts.<code>.po). <code>, here, is the language code of the translation, e.g. it für Italian.

I usually do not touch the original po files in an editor because it is very easy to break something. Better to use a translation tool, such as POEdit. The basic version is free (there is also a commercial "pro" version). After installation of POEdit, doubleclick on one of these language files in the expllorer to open it. POEdit displays a table with the original English text in the left column and with the so-far translated strings in the right colum. Empty cells indicate a missing translation. Warning icons in the left column indicate that something is missing in the translated text. In the screenshot (which is for the German POEdit, sorry) the first item has the issue that the original string ends with a colon and a space which are missing in the translated text. Keep a eye on such inconsistencies, fixing them makes the translation look a lot more professional.

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #10 on: August 11, 2022, 05:38:41 pm »
@wp thanks

I started this topic because, when using Italian language, in one place the "object inspector" is called "ispettore oggetti" and in another place "Analizzatore oggetti".

I was able to find where is "analizzatore oggetti", see below, and for testing purpose I changed appending "-2"

#: lazarusidestrconsts.lismenuviewobjectinspector
msgctxt "lazarusidestrconsts.lismenuviewobjectinspector"
msgid "Object Inspector"
msgstr "Analizzatore oggetti-2"

in the picture the two places with mismmatched name in Italian language.

but I cannot find where is "ispettore oggetti" (as well as the other strings in the object inpsector form like "proprietà", "eventi".. as you can see in attached picture,

Any suggestion ?

wp

  • Hero Member
  • *****
  • Posts: 10291
Re: is italian language editor still supported ?
« Reply #11 on: August 11, 2022, 05:49:45 pm »
All these seem to be strings of the IDE. Open lazaruside.it.po in POEdit, press CTRL+F and search for whatever you want to check. When found change the translation as needed. Save, restart the IDE and make sure that you changed the correct string. Make a backup copy the po file before changing anything.

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #12 on: August 11, 2022, 05:57:16 pm »
that is what I did:

1- backup "lazaruside.it.po"
2- renamed the field with "Anlizzzatore oggetti" as "Analizzatore oggetti-2"
3- reload Lazarus IDE
4- all went fine

but I didn't find the string "ispettore oggetti", where does it come from ?

thanks for the support.



wp

  • Hero Member
  • *****
  • Posts: 10291
Re: is italian language editor still supported ?
« Reply #13 on: August 11, 2022, 06:02:15 pm »
I see. If you don't find it among the IDE string constants it could be in the "components" folder, for example in "components/ideintf" which contains the property and component editors, as well as the basic object inspector. Since there is a "languages" folder here too, you might find it in "objinspstrconsts.it.po".

Paolo

  • Sr. Member
  • ****
  • Posts: 333
Re: is italian language editor still supported ?
« Reply #14 on: August 11, 2022, 06:16:24 pm »
Ok, thanks. I'll check asap.

 

TinyPortal © 2005-2018