Ellipsis character causing problems

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Ellipsis character causing problems

Ari Jolma-2
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


Hi,

It seems that whenever there is an ellipsis character () in the string to be translated, which happens often in menus, the string is not translated. This happens in my Linux Mint 18.1 environment - the Windows nightly build seems to be ok. The problem is not related to not having ellipsis (but three dots) in the translation.

Any ideas?

Ari


_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr
Reply | Threaded
Open this post in threaded view
|

Re: Ellipsis character causing problems

Dick Groskamp
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


Ari,

I just finished a whole lot of changes in the ellipsis in the Dutch translation.
They were three dots (...) but I've changed them to

Char Dec Hex Entity
…     
82302026    …   
HORIZONTAL ELLIPSIs

as mentioned on this page
which is one character

HTML Unicode UTF-8

Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, Java...

I don't know if it worked since I haven't got the new translation yet
 
__________
DiGro



Van: Ari Jolma <[hidden email]>
Aan: [hidden email]
Verzonden: woensdag 21 februari 9:59 2018
Onderwerp: [Qgis-tr] Ellipsis character causing problems

Hi,
It seems that whenever there is an ellipsis character () in the string to be translated, which happens often in menus, the string is not translated. This happens in my Linux Mint 18.1 environment - the Windows nightly build seems to be ok. The problem is not related to not having ellipsis (but three dots) in the translation.
Any ideas?
Ari
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/

_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr


_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr
Reply | Threaded
Open this post in threaded view
|

Re: Ellipsis character causing problems

Jürgen E. Fischer
In reply to this post by Ari Jolma-2
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


Hi Ari,

On Wed, 21. Feb 2018 at 10:59:14 +0200, Ari Jolma wrote:
> It seems that whenever there is an ellipsis character (…) in the string to
> be translated, which happens often in menus, the string is not translated.
> This happens in my Linux Mint 18.1 environment - the Windows nightly build
> seems to be ok. The problem is not related to not having ellipsis (but three
> dots) in the translation.
 
> Any ideas?

Not reproducable for the German translation (after scripts/pull_ts.sh de):

$ grep -m1 -A2 -B2 source.*… i18n/qgis_de.ts
    <message>
        <location filename="../python/plugins/processing/python-i18n.cpp" line="74"/>
        <source>Run as Batch Process…</source>
        <translation>Als Batchprozeß starten…</translation>
    </message>



Jürgen

--
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de

_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr

signature.asc (844 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ellipsis character causing problems

Ari Jolma-2
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/

On 21.02.2018 22:00, Jürgen E. Fischer wrote:

> Hi Ari,
> On Wed, 21. Feb 2018 at 10:59:14 +0200, Ari Jolma wrote:
>> It seems that whenever there is an ellipsis character (…) in the string to
>> be translated, which happens often in menus, the string is not translated.
>> This happens in my Linux Mint 18.1 environment - the Windows nightly build
>> seems to be ok. The problem is not related to not having ellipsis (but three
>> dots) in the translation.
>  
>> Any ideas?
> Not reproducable for the German translation (after scripts/pull_ts.sh de):
>
> $ grep -m1 -A2 -B2 source.*… i18n/qgis_de.ts
>      <message>
>          <location filename="../python/plugins/processing/python-i18n.cpp" line="74"/>
>          <source>Run as Batch Process…</source>
>          <translation>Als Batchprozeß starten…</translation>
>      </message>

I'm not sure I explained the problem correctly. The excerpt in my
ts-file is like this too

     <message>
         <location filename="../src/ui/qgisapp.ui" line="2929"/>
         <source>Layout Manager…</source>
         <translation>Taittojen hallinta…</translation>
     </message>

and if I run lrelease qgis_fi.ts I get

Updating 'qgis_fi.qm'...
     Generated 18624 translation(s) (18624 finished and 0 unfinished)
     Ignored 8580 untranslated source text(s)

(so, no errors)

But the menu shows "Layout Manager…" instead of "Taittojen hallinta…".
If I take the qm-file from the nightly windows build, the menu item is
correctly shown as translated.

If I change the the "…" in the tm-file and in the ui-source to "..."
(three dots) and run the lrelease again, the menu is shown with the
translated string. Both tm-file and ui-file are utf-8. My Qt Linguist is
4.8.7. So, I believe my Qt Linguist is somehow broken??

Ari

_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr
Reply | Threaded
Open this post in threaded view
|

Re: Ellipsis character causing problems

Jürgen E. Fischer
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


Hi Ari,

On Thu, 22. Feb 2018 at 07:55:12 +0200, Ari Jolma wrote:
> Both tm-file and ui-file are utf-8. My Qt Linguist is 4.8.7. So, I believe my
> Qt Linguist is somehow broken??

Have you tried to use lrelease/linguist from Qt5?


Jürgen

--
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode

_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr

signature.asc (844 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ellipsis character causing problems

Ari Jolma-2
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


On 22.02.2018 09:41, Jürgen E. Fischer wrote:
Hi Ari,
On Thu, 22. Feb 2018 at 07:55:12 +0200, Ari Jolma wrote:
Both tm-file and ui-file are utf-8. My Qt Linguist is 4.8.7. So, I believe my
Qt Linguist is somehow broken??
Have you tried to use lrelease/linguist from Qt5?

I tried now. It seems that installing package 'qt5-default' upgrades lrelease to 5.5.1 in my machine. And the generated qm-file seems ok.

Thanks,

Ari



Jürgen



_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr


_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr