Re: [Geany-Devel] Comments in translation files

2017-08-13 Thread Frank Lanitz
On 12.08.2017 15:22, Lars Paulsen wrote:
> Now I got the strings to. In a clean doirectory.
> (Also I did try make clean in the other directory)
> 
> Thanks a lot for your help. Sorry, for wasting your time.

You are welcome. Looking forward to a PR for the new plugin ;)




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-08-12 Thread Lars Paulsen

Now I got the strings to. In a clean doirectory.
(Also I did try make clean in the other directory)

Thanks a lot for your help. Sorry, for wasting your time.

Greetings,
Lars

Am 12.08.2017 um 12:47 schrieb Frank Lanitz:

On 04.08.2017 18:59, Lars Paulsen wrote:

Hi,

any news on this? Maybe I should just go ahead and type it in by hand if
the comments doesn't matter?
Also I wanted to say that I did not mention before, that I changed the
makefiles manually.
Maybe I did miss something. Is there an automated way of adding a new
plugin?


Well, actually I've just cloned your branch and run ./autogen.sh on it.
After changing into po-folder and running make update-po the new strings
were added to de.po and other po files. So everything fine from my end
by now.

Cheers,
Frank



___
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-08-12 Thread Frank Lanitz
On 04.08.2017 18:59, Lars Paulsen wrote:
> Hi,
> 
> any news on this? Maybe I should just go ahead and type it in by hand if
> the comments doesn't matter?
> Also I wanted to say that I did not mention before, that I changed the
> makefiles manually.
> Maybe I did miss something. Is there an automated way of adding a new
> plugin?


Well, actually I've just cloned your branch and run ./autogen.sh on it.
After changing into po-folder and running make update-po the new strings
were added to de.po and other po files. So everything fine from my end
by now.

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-08-04 Thread Lars Paulsen

Hi,

any news on this? Maybe I should just go ahead and type it in by hand if 
the comments doesn't matter?
Also I wanted to say that I did not mention before, that I changed the 
makefiles manually.
Maybe I did miss something. Is there an automated way of adding a new 
plugin?


Best Regards,
Lars


Am 30.07.2017 um 19:01 schrieb Frank Lanitz:

On 30.07.2017 15:08, Lars Paulsen wrote:

Hi Frank, hi Lex,

thanks for the help so far.
My code is now available on github under
https://github.com/LarsGit223/geany-plugins, see branch "workbench".

See initial commit
https://github.com/LarsGit223/geany-plugins/commit/87b6d5c5019fd0786029e2efd28ce0f687721bac
for the files that I changed.
Aside from the plugin's source code in folder "workbench" I changed the
following files:

- configure.ac
- makefile.am
- po/POTFILES.in
- build/workbench.m4


Will have a look. On first view it looks okish. Need to have a closer look.



___
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-30 Thread Lars Paulsen

Thanks.


Am 30.07.2017 um 19:01 schrieb Frank Lanitz:

On 30.07.2017 15:08, Lars Paulsen wrote:

Hi Frank, hi Lex,

thanks for the help so far.
My code is now available on github under
https://github.com/LarsGit223/geany-plugins, see branch "workbench".

See initial commit
https://github.com/LarsGit223/geany-plugins/commit/87b6d5c5019fd0786029e2efd28ce0f687721bac
for the files that I changed.
Aside from the plugin's source code in folder "workbench" I changed the
following files:

- configure.ac
- makefile.am
- po/POTFILES.in
- build/workbench.m4


Will have a look. On first view it looks okish. Need to have a closer look.



___
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-30 Thread Frank Lanitz
On 30.07.2017 15:08, Lars Paulsen wrote:
> Hi Frank, hi Lex,
> 
> thanks for the help so far.
> My code is now available on github under
> https://github.com/LarsGit223/geany-plugins, see branch "workbench".
> 
> See initial commit
> https://github.com/LarsGit223/geany-plugins/commit/87b6d5c5019fd0786029e2efd28ce0f687721bac
> for the files that I changed.
> Aside from the plugin's source code in folder "workbench" I changed the
> following files:
> 
> - configure.ac
> - makefile.am
> - po/POTFILES.in
> - build/workbench.m4
> 

Will have a look. On first view it looks okish. Need to have a closer look.



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-30 Thread Lars Paulsen

Hi Frank, hi Lex,

thanks for the help so far.
My code is now available on github under 
https://github.com/LarsGit223/geany-plugins, see branch "workbench".


See initial commit 
https://github.com/LarsGit223/geany-plugins/commit/87b6d5c5019fd0786029e2efd28ce0f687721bac 
for the files that I changed.
Aside from the plugin's source code in folder "workbench" I changed the 
following files:


- configure.ac
- makefile.am
- po/POTFILES.in
- build/workbench.m4

Greetings,
Lars

Am 30.07.2017 um 10:08 schrieb Lars Paulsen:


Short update:
I quickly tried autogen but no difference. Cheers, Lars


Am 30.07.2017 um 09:59 schrieb Lars Paulsen:


Hi Frank,

I did not run autogen. Only configure.

No my source is not yet available online.
I am close to a first usable version but only wanted to upload it 
after the "householding" is done (like translation at least to german).


Greetings,
Lars


Am 30.07.2017 um 07:55 schrieb 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



___
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


___
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-30 Thread Lars Paulsen

Short update:
I quickly tried autogen but no difference. Cheers, Lars


Am 30.07.2017 um 09:59 schrieb Lars Paulsen:


Hi Frank,

I did not run autogen. Only configure.

No my source is not yet available online.
I am close to a first usable version but only wanted to upload it 
after the "householding" is done (like translation at least to german).


Greetings,
Lars


Am 30.07.2017 um 07:55 schrieb 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



___
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-30 Thread Lars Paulsen

Hi Frank,

I did not run autogen. Only configure.

No my source is not yet available online.
I am close to a first usable version but only wanted to upload it after 
the "householding" is done (like translation at least to german).


Greetings,
Lars


Am 30.07.2017 um 07:55 schrieb 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



___
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-30 Thread Lars Paulsen

Hi Lex,

yes, e.g. _("Hello World!").
Strings get translated properly if I add them to the translation 
completely manually e.g. into "de.po".


After you mentioned the tool I thought that that should also be possible 
using the makefiles.

Or is the makefile only updating the strings and not adding new ones?
But I saw untranslated strings from other plugins so I assume the first 
is wrong and it should also add new strings.


Greetings,
Lars


Am 30.07.2017 um 00:35 schrieb 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


___
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 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