denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Translating Menu Paths


From: Éloi Rivard
Subject: Re: [Denemo-devel] Translating Menu Paths
Date: Mon, 13 May 2013 09:15:01 +0200

Well, I imagine that it would basically be a function that would split a string (using strtok or such), translate tokens and rebuild a string from them. I can do that when I have a bit of time.


2013/5/11 Richard Shann <address@hidden>
Eloi,

I think you are the expert now on translation inside Denemo :)
I see that menu names are all translated, so it should be possible to
write a function in C that takes a menu path
(e.g. /ObjectMenu/Directives) and generates a translated form using the
translations that exist (somewhere in there!) for ObjectMenu and
Directives.
(Well, I am not quite sure that the top-most level does exist in
translation, but we can special case that).

Do you know how to do this - can you tell me or, even better, create
such a function? The returned path should be allocated on the heap, the
caller will g_free() the result.

Richard



_______________________________________________
Denemo-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/denemo-devel



--
Éloi Rivard - address@hidden
       
« On perd plus à être indécis qu'à se tromper. »

reply via email to

[Prev in Thread] Current Thread [Next in Thread]