Discussion:
Replacing #string resources with xliff
Paul Lovejoy
2014-07-07 09:17:36 UTC
Permalink
Hi,

We're converting an older database which makes extensive use of #strings to handle localizing of virtually everything in the database, to run in v13 and v14.

We've read about how .rsr files are replaced by xliff. We're able to convert the old .rsr files to xliff, but we have an internally written resource file manager based on obsolete 4D commands which we'll have to replace or rewrite.

I've been looking around the available resources on the KB and can't find something that would allow us to easily edit xliff files as one would .rsr files.

Is there something out there? Perhaps a component or free-standing database someone has done that they'd be willing to share?

tia,


Paul


**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Peter Bozek
2014-07-07 09:28:17 UTC
Permalink
Post by Paul Lovejoy
I've been looking around the available resources on the KB and can't find
something that would allow us to easily edit xliff files as one would .rsr
files.
Is there something out there? Perhaps a component or free-standing
database someone has done that they'd be willing to share?
XLIFF files have an advantege that you can split resources into many files,
what means you have one more level to organize resources (file / group /
item.)

XLIFF files are plain text files and can be edited with any text editor, if
they have reasonable size - I am using TextWrangler as it can collapse /
expand groups.

I translate all my 4D project, often to several languages, and made very
simple 4D application that can read, edit and save XLIFF files. Its purpose
is to make translation process faster, not to browse or (re)organize
strings. If you want to take a look, let me know.
--
Peter Bozek
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Timucin Gokdemir
2014-09-15 04:12:57 UTC
Permalink
Hi Peter,
Would you mind sharing what you did for "replacing #string resources with
XLIFF "
Thanks in advance,

Timucin



--
View this message in context: http://4d.1045681.n5.nabble.com/Replacing-string-resources-with-xliff-tp5731701p5732884.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Koen Van Hooreweghe
2014-09-15 06:50:01 UTC
Permalink
Hi Timuchin,

The biggest part is to move your STR# resources into an XLIFF file.
The references in objects will keep on working.
Have a look at 4D Pop, I think this is a good starting point. Maybe
there is an update method provided by this component, not sure. A long
time ago I wrote it myself using the resource and XML commands.

HTH
Koen
Post by Timucin Gokdemir
Would you mind sharing what you did for "replacing #string resources with
XLIFF "
Thanks in advance,
--------------------
Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653

**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Jim Dorrance
2014-09-15 14:46:32 UTC
Permalink
I did string list to array, and then built an XML file with the strings.
Works without problem.
Post by Koen Van Hooreweghe
Hi Timuchin,
The biggest part is to move your STR# resources into an XLIFF file. The
references in objects will keep on working.
Have a look at 4D Pop, I think this is a good starting point. Maybe there
is an update method provided by this component, not sure. A long time ago I
wrote it myself using the resource and XML commands.
HTH
Koen
Would you mind sharing what you did for "replacing #string resources with
Post by Timucin Gokdemir
XLIFF "
Thanks in advance,
--------------------
Compass bvba
Koen Van Hooreweghe
Kloosterstraat 65
9910 Knesselare
Belgium
tel +32 495 511.653
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New
opportunities await you with 4D v14!
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
**********************************************************************
--
Jim Dorrance
jim.dorrance-***@public.gmane.org
4d-***@public.gmane.org
www.4d.dorrance.eu

PS: If you know of anyone that needs an experienced 4D programmer to add
energy and experience to their team, please let me know. I have
experience in many areas. Reasonable rates. Remote or Paris only.
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Keisuke Miyako
2014-09-15 23:44:08 UTC
Permalink
The menu “STR# to XLIFF” might help.

https://github.com/miyako/4d-utility-resources-kit


Documentation: http://kb.4d.com/assetid=76783

miyako
Post by Jim Dorrance
I did string list to array, and then built an XML file with the strings.
Works without problem.
Koen Van Hooreweghe
2014-07-07 09:55:18 UTC
Permalink
Hi Paul,

I guess 4D Pop is one option.

I once wrote a string resource manager for .rsr files too, which I
updated to work with xliff files. No big issue, besides of fiddling a
bit with xml files. IIRC you can find the sources of 4D Pop component
somewhere and get some implementation ideas from it.

Koen
Post by Paul Lovejoy
We're converting an older database which makes extensive use of
#strings to handle localizing of virtually everything in the
database, to run in v13 and v14.
We've read about how .rsr files are replaced by xliff. We're able to
convert the old .rsr files to xliff, but we have an internally
written resource file manager based on obsolete 4D commands which
we'll have to replace or rewrite.
I've been looking around the available resources on the KB and can't
find something that would allow us to easily edit xliff files as one
would .rsr files.
Is there something out there? Perhaps a component or free-standing
database someone has done that they'd be willing to share?
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Ortwin Zillgen
2014-09-16 07:15:36 UTC
Permalink
Post by Jim Dorrance
I did string list to array, and then built an XML file with the strings.
Works without problem.
Post by Koen Van Hooreweghe
The biggest part is to move your STR# resources into an XLIFF file. The
references in objects will keep on working.
Have a look at 4D Pop, I think this is a good starting point. Maybe there
is an update method provided by this component, not sure. A long time ago I
wrote it myself using the resource and XML commands.
4D Pop will migrate STR# to Xliff, but it only accepts *.rsrc-files, which is a pity as 4D names its resourcefiles *.rsc by default.
It's up to you, renaming the extension



Regards
O r t w i n Z i l l g e n
---------------------------------------------
<mailto:info-x85BCD9UzoazQB+***@public.gmane.org> <http://dddd.mettre.de?4713>
<feed://dddd.mettre.de/dddd.xml> <https://twitter.com/Ozett>
member of developer-network <http://www.die4dwerkstatt.de>

**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Walt Nelson (Manila)
2014-09-18 05:02:51 UTC
Permalink
Paul,

Sorry I'm late to the party on this, but it occurs to me that the
documentation of 4DAPPBUILDER PRO might help in your case. Here is a link to
the documentation:
http://4dmentor.com/4DAPPBUILDER_PRO/Docs/Table%20of%20Contents.html

Scroll down the table of contents to "Chapter 8 - Localization:
Multi-Language Support"
This chapter talks about Language Codes, XLIFF Files, and Table/Field
Aliases. It also gives you a recommendation for an XLIFF Editor if you want
to try something other than 4DPOP.

(I didn't use 4DPOP because at the time, it was interfering with the
behavior of Popup/Dropdown menus.)

Anyway, take a look at the docs. And you might also down 4DAPPBUILDER PRO,
which is Open Source. You can see it in action: Localization using XLIFF
files and Table/Field Alias records for each language.

Warmest regards,

Walt Nelson (Manila)
Author: 4D for Fun and Profit
Author: 4DAPPBUILDER PRO
Website: www.4DMENTOR.com
Email Addr: waltnelson-66EQId43WGZWk0Htik3J/***@public.gmane.org, walt-5LYxqKIAaTPSUeElwK9/***@public.gmane.org

"Hit the ground running!"
-----Original Message-----
Sent: Monday, July 07, 2014 5:18 PM
To: 4D iNug Technical
Subject: Replacing #string resources with xliff
Hi,
We're converting an older database which makes extensive use of
#strings to handle localizing of virtually everything in the database,
to run in v13 and v14.
We've read about how .rsr files are replaced by xliff. We're able to
convert the old .rsr files to xliff, but we have an internally written
resource file manager based on obsolete 4D commands which we'll have to
replace or rewrite.
I've been looking around the available resources on the KB and can't
find something that would allow us to easily edit xliff files as one
would .rsr files.
Is there something out there? Perhaps a component or free-standing
database someone has done that they'd be willing to share?
tia,
Paul
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New
opportunities await you with 4D v14!
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
**********************************************************************
**********************************************************************
See how easy it is to extend your 4D solutions to Web and mobile. New opportunities await you with 4D v14!

4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-Unsubscribe-d2/MUvgItPNWk0Htik3J/***@public.gmane.org
**********************************************************************
Loading...