Re: [Geany-Devel] Comments in translation files

2017-07-29 Thread Frank Lanitz
On 29.07.2017 16:07, Lars Paulsen wrote:
> Hello All,
> 
> I solved my problem with running xgettext from the command line.
> But I got one question left:
> 
> How can I update the language files using the geany-plugins makefile?
> 
> My own plugin is build and installed properly if I run "make" and "make
> install". I also added my source files to "POTFILES.IN" which makes them
> appear in "POTFILES" after buidling. I also ran "make update-po" inside
> the "po" folder but my plugin's strings do not appear in any ".po" files.
> 

Did you rerun autogen after adding the files? Is your source somewhere
available?

Cheers,
Frank



signature.asc
Description: OpenPGP digital signature
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Comments in translation files

2017-07-29 Thread Lex Trotman
On 30 July 2017 at 00:07, Lars Paulsen  wrote:
> Hello All,
>
> I solved my problem with running xgettext from the command line.
> But I got one question left:
>
> How can I update the language files using the geany-plugins makefile?
>
> My own plugin is build and installed properly if I run "make" and "make
> install". I also added my source files to "POTFILES.IN" which makes them
> appear in "POTFILES" after buidling. I also ran "make update-po" inside the
> "po" folder but my plugin's strings do not appear in any ".po" files.

Have to ask the obvious question first, you have marked the strings as
translatable?

Cheers
Lex

>
> Regards,
> Lars
>
>
> Am 29.07.2017 um 15:10 schrieb Lars Paulsen:
>>
>> Hi Lex,
>>
>> ignore it, found the solution on stackoverflow.com:
>>
>> xgettext -k_ -D . -o - *.c
>>
>> Greetings,
>> Lars
>>
>>
>
> ___
> Devel mailing list
> Devel@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Comments in translation files

2017-07-29 Thread Lars Paulsen

Hello All,

I solved my problem with running xgettext from the command line.
But I got one question left:

How can I update the language files using the geany-plugins makefile?

My own plugin is build and installed properly if I run "make" and "make 
install". I also added my source files to "POTFILES.IN" which makes them 
appear in "POTFILES" after buidling. I also ran "make update-po" inside 
the "po" folder but my plugin's strings do not appear in any ".po" files.


Regards,
Lars


Am 29.07.2017 um 15:10 schrieb Lars Paulsen:

Hi Lex,

ignore it, found the solution on stackoverflow.com:

xgettext -k_ -D . -o - *.c

Greetings,
Lars




___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Comments in translation files

2017-07-29 Thread Lars Paulsen

Hi Lex,

ignore it, found the solution on stackoverflow.com:

xgettext -k_ -D . -o - *.c

Greetings,
Lars


Am 29.07.2017 um 14:52 schrieb Lars Paulsen:

Hi Lex,

thanks for the reply. I tried to use the tool but xgettext does not 
output any strings for me. I tried to run it like this:


xgettext -D . -o - *.c

Also used some variations but no success. Can you give me a hint?

Thanks,
Lars

Am 29.07.2017 um 14:03 schrieb Lex Trotman:

On 29 July 2017 at 21:31, Lars Paulsen  wrote:

Hello All,

I got a question about the translation files. If I have a translated 
string
like in the example below, does the comment with the source location 
have a
meaning for the translation tool or is it "only" an information for 
other

developers?

#. Windows
#: ../webhelper/src/gwh-plugin.c:541
msgid "Windows"
msgstr "Fenster"

Thanks for any answers in advance.


Its a generated comment from the tool that extracts the strings to be
translated.

See https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html

Cheers
Lex



Greetings,
Lars


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Comments in translation files

2017-07-29 Thread Lars Paulsen

Hi Lex,

thanks for the reply. I tried to use the tool but xgettext does not 
output any strings for me. I tried to run it like this:


xgettext -D . -o - *.c

Also used some variations but no success. Can you give me a hint?

Thanks,
Lars

Am 29.07.2017 um 14:03 schrieb Lex Trotman:

On 29 July 2017 at 21:31, Lars Paulsen  wrote:

Hello All,

I got a question about the translation files. If I have a translated string
like in the example below, does the comment with the source location have a
meaning for the translation tool or is it "only" an information for other
developers?

#. Windows
#: ../webhelper/src/gwh-plugin.c:541
msgid "Windows"
msgstr "Fenster"

Thanks for any answers in advance.


Its a generated comment from the tool that extracts the strings to be
translated.

See https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html

Cheers
Lex



Greetings,
Lars


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


Re: [Geany-Devel] Comments in translation files

2017-07-29 Thread Lex Trotman
On 29 July 2017 at 21:31, Lars Paulsen  wrote:
> Hello All,
>
> I got a question about the translation files. If I have a translated string
> like in the example below, does the comment with the source location have a
> meaning for the translation tool or is it "only" an information for other
> developers?
>
> #. Windows
> #: ../webhelper/src/gwh-plugin.c:541
> msgid "Windows"
> msgstr "Fenster"
>
> Thanks for any answers in advance.

Its a generated comment from the tool that extracts the strings to be
translated.

See https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html

Cheers
Lex

>
> Greetings,
> Lars
>
>
> ___
> Devel mailing list
> Devel@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


[Geany-Devel] Comments in translation files

2017-07-29 Thread Lars Paulsen

Hello All,

I got a question about the translation files. If I have a translated 
string like in the example below, does the comment with the source 
location have a meaning for the translation tool or is it "only" an 
information for other developers?


#. Windows
#: ../webhelper/src/gwh-plugin.c:541
msgid "Windows"
msgstr "Fenster"

Thanks for any answers in advance.

Greetings,
Lars


___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel