• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Change language

Betclever

Active member
#1
Hello all,

I have 2 languages "French" and I have translated some content on the second one which is parented with the first "French".

Is it possible to delete the first one and set the second one as default without loosing anything?

If I delete the first one after setting the second one as primary, can I restore it if any error?

Thanks.
 

Mike

XenForo developer
Staff member
#2
So you have this setup?

-- French
---- French customized

If so, deleting "French" will remove all translations that you haven't customized in "French customized".

I assume you set it up this way so you could upgrade the French language and keep your customizations. There isn't really a way around having 2 languages then.

If you're just wanting to set the customized version as default, you can do that without changing anything.
 

Mike

XenForo developer
Staff member
#4
If you're just trying to force a default, then you could do the deletion idea you suggested -- delete the old "base" language and then recreate it. (I wasn't clear that you wanted to restore it.)
 

Betclever

Active member
#10
@Brogan

I found what you have mentioned above but I don't have language_ID with a value like 1,2,3 or 4.
You will see what I have on my phpmyadmin under the SQL syntax => xf_user but I only can change the language ID "by user".

I have another syntax called "language ID" but see what I have in att. The default value is 10 so maybe another thing or a mistake or maybe, the value is elsewhere... ?
 

Attachments

Betclever

Active member
#12
hum...

In fact, when I check "all users" to modify the Language ID to 4 (the correct one for us), I have to change each language individual. :/
This is a hard work cause the scrolling and the view are not so fast and easy to find back the correct syntax...

Any idea?
 

Mike

XenForo developer
Staff member
#14
You can do it from the UI by deleting the language and then recreating it as well (my previous post).
 

Betclever

Active member
#15
@Brogan

Please find what I have when I check "all user" and click on modify.
Therefore, I have to change 3 to 4 for each user. :/

@Mike

What's UI?
If I delete the first one, what will happens to members who are using the language number 3 then?
I don't want to loose any expression cause the language 4 has been added after the language 3.

So, if I delete the language 3, Will I loose all expressions?

Sorry guis, it's to be sure and avoid future problem so I'm asking a lot of question but this is for me super critical.

Thanks.
 

Attachments

sinucello

Well-known member
#16
@Betclever - you could use google translate ;-). This add-on allows you to hide languages from the users view. Things like:

-- French (hidden)
---- French customized (visible)

will be possible then.
 

Mike

XenForo developer
Staff member
#17
What's UI?
If I delete the first one, what will happens to members who are using the language number 3 then?
I don't want to loose any expression cause the language 4 has been added after the language 3.

So, if I delete the language 3, Will I loose all expressions?
I was referring to doing it in the control panel using the approach I suggested. As long as you recreate/reimport the "base" language (and reassign your customized version as a child of it), you should be fine. If you're concerned, take a backup first; at least export the 2 languages before changing anything.
 

Betclever

Active member
#18
@Mike

When I want to export the language, the system asks me to choose between a lot of templates... Is this normal?
Another way to export it easier?

Another idea is maybe merge both files if it's possible of course?
 

Mike

XenForo developer
Staff member
#19
I don't understand what you mean by "choose between a lot of templates". There are options you need to consider when exporting a language, though most of them will be fine as the defaults.

Merging the languages is possible, but probably not what you want if you're planning on upgrading the base language at any point.
 

Betclever

Active member
#20
Merging is maybe the best solution cause I want to keep the language french and merge all expressions to avoid to loose anything.

Is this possible ? If yes how please?

Thanks,

PS : I found the system to export the XML file cause I have choosen "all".
What shall I do with the xml file then and shall I import the second one to the first one or the first one to the second one?

People who use the language 4 who fall automatically on the default one or shall I do something more?