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 <[email protected]> > 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 > [email protected] > https://lists.gnu.org/mailman/listinfo/denemo-devel > -- Éloi Rivard - [email protected] « On perd plus à être indécis qu'à se tromper. »
_______________________________________________ Denemo-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/denemo-devel
