Forums / Suggestions / Moving Exponential sites: problems with translation.ts

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Moving Exponential sites: problems with translation.ts

Author Message

Cristian G. L.

Tuesday 15 June 2004 9:27:39 am

Hi

Imagine the following situation:
I have a server with a Exponential site (called "A"). In other machine (other Exponential installation) i developed other site (called "B"). I want to move the site "B" to the server where i have the site "A", so that both sites run in the same Exponential installation.
In the server, inside the <i>translation.ts</i> there are a lot of strings added for site "A". But in the other machine, i added to the respective <i>translation.ts</i> strings for site "B".
If i copy the site "B" <i>translation.ts</i> to the server, i will lost the string added for site "A".
I can't have two <i>translation.ts</i> files because this file is shared along all sites of the same Exponential installation. How can i merge two <i>translation.ts</i> files?

(note: i don't have this problem yet, but i think that could be relevant)

Bye (sorry for my poor english)

Cristian

Marco Zinn

Saturday 19 June 2004 9:42:18 am

The .ts files are XML files, so you could merge them with a text editor and maybe use or diff and patch commands (i'm not into unix enough to help out more).
But the problem is there, even if you "just" upgrade to a new version of Exponential, you could loose your custom translations.
I guess, this should be solved by some kind of override mechanism, as it is done with the .ini files (needs coding from ez).

Marco
http://www.hyperroad-design.com

Pablo C. Vergara Castro

Monday 21 June 2004 12:05:32 am

I believe that the problem that raises Cristian is but on the posibility in which the translations with the file are being made at the moment translation.ts.

I explain, if we try to use translations in sections or in design texts for each site there's not a posibility to make it since all the translations depend on one or several files placed in share (common directory for all site's of Exponential).

Björn X

Wednesday 23 June 2004 11:06:20 am

Have you looked into the topic of setting up a translation extenstion?

You can supply translations via an extension.

Pablo C. Vergara Castro

Thursday 24 June 2004 12:21:17 am

Can you explain that? Please

Where is information about?