Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-11-28 20:10:05

Basebollfoto
Member
From: Norrtälje, Sweden
Registered: 2017-04-17
Posts: 38
Website

Copy localization files

I am setting up a second Backlight site. Halfway through I realized I should have copied the old site and just removed the galleries. I just hit the localization issue...

Is there a way to copy the localization file(s) from my first site in order to get all the translations and preffered naming I once set up? It would save me a lot of time.

Offline

#2 2018-11-29 00:01:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Copy localization files

there are no localization files, it's all in the database.

It looks like you can export the language entries from your first Backlight site and import them into the second.

Before you start, be sure to back up both databases (the /backlight/data/ folder). If you're not comfortable with doing things with the database then you're best off waiting for Ben.

But if you want to try, try this:


To get to the database, log into your first Backlight site. In the Backlight dashboard under Special Links, click the phpLiteAdmin link
The password is "admin"

In the left panel under Change Database, click on the Admin master link

Then below that, click on the language_value table link

On the right-hand side, click on the Export tab. Under Save As, give the file a name that makes sense to you and click Export. Save it where you can find it later.

That exports the main language settings.

If you need the Cart languages, go back to the Change Database section and click on Cart__master. then language_value, then the Export tab and export again, giving it a different file name.

If you need Client Response language settings, just do the same thing, only chose Client Response under Change Database.

Now log into your new Backlight site, go to the database.
Under Change Database click on Admin--master. Then click on language__value
Click on Import
Browse to the file you previously exported then import it.

Repeat for any other language settings you need (Cart, Client Response)


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2018-11-29 04:50:40

Basebollfoto
Member
From: Norrtälje, Sweden
Registered: 2017-04-17
Posts: 38
Website

Re: Copy localization files

Scary! I will try it when rested smile
Thanx

Offline

#4 2018-11-29 05:25:09

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Copy localization files

just back up your data/ folders before proceeding.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2018-11-29 06:29:01

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Copy localization files

Basebollfoto wrote:

I am setting up a second Backlight site. Halfway through I realized I should have copied the old site and just removed the galleries. I just hit the localization issue...

I would start again with your second BL site. But first export the new templates you have already created. Then use the BL data directory from your first install as a starting point. I think that's easier than having to work directly on the database files.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#6 2019-05-27 23:23:01

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Copy localization files

Rod - Before installing Backlight1 from scratch, I made a copy of all folders. Is there in them one that copied back to the new installation will restore the look of the old gallery? I mean CSS and Polish translation...

Offline

#7 2019-05-27 23:41:43

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Copy localization files

From a previous Backlight site?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2019-05-27 23:44:30

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Copy localization files

Yes, I have copies of the old version backlight folders

Offline

#9 2019-05-27 23:53:00

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Copy localization files

Actually, I would like to restore all backlight settings (templates, products, pricings). Is it possible if I have folders?

Last edited by Routlaw (2019-05-27 23:54:34)

Offline

#10 2019-05-28 00:05:57

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Copy localization files

you could try uploading the data folder
And if you were using any custom css or phplugins, upload the custom folder too.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2019-05-28 01:21:52

Routlaw
Member
From: Warsaw, Poland
Registered: 2017-09-08
Posts: 22
Website

Re: Copy localization files

Thanks again Rod. It did not work out perfectly but it saved me a lot of time smile

Offline

Board footer

Powered by FluxBB