Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (Morgan), 59 guests, and 388 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
TGCsanderson
TGCsanderson
Hackelton U.K.
Posts: 67
Joined: September 2007
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 17
M4TT 12
FREAK 8
Ruben 8
mmkk 4
isaac 4
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Upgrading : Language File wizard #256470
02/12/15 04:55 PM
02/12/15 04:55 PM
Joined: Jul 2006
Posts: 4,704
Liverpool : England : UK
Mark S Offline OP
Mark S  Offline OP

Joined: Jul 2006
Posts: 4,704
Liverpool : England : UK
For peace of mind i need to ask the question as its been so long. . .

7.5.9 has Language file changes.

I will be upgrading from 7.58 to 7.59
I have made lots of changes to my language files making them more local to me.

When i do the upgrade and it updates the language files what is the process ?

Will it overwrite any existing language changes i have made ?
Will it ignore any language changes ive made ?
And any i don't have does it just add them ?

I always back them up prior to an update but hold my breath in case my hard work is rubbed out.

How does the Process work updating the language files via the update wizard.


Version v7.5.8
People who inspire me Gizmo ID242 SD
Its been a long road. . . .to be waiting
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Upgrading : Language File wizard [Re: Mark S] #256498
02/12/15 06:53 PM
02/12/15 06:53 PM
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
The upgrader just checks for new/changed strings and replaces them for you (unless you select the "i will update my lang files myself" option).

I'd back up what you already have, just in case.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Upgrading : Language File wizard [Re: Mark S] #256499
02/13/15 03:29 AM
02/13/15 03:29 AM
Joined: Jul 2006
Posts: 4,704
Liverpool : England : UK
Mark S Offline OP
Mark S  Offline OP

Joined: Jul 2006
Posts: 4,704
Liverpool : England : UK
So if the string is Modified its not updated ?

And

If it does not exist (New) its created ?


Version v7.5.8
People who inspire me Gizmo ID242 SD
Its been a long road. . . .to be waiting
Re: Upgrading : Language File wizard [Re: Mark S] #256501
02/13/15 11:01 AM
02/13/15 11:01 AM
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
I believe the upgrader simply looks for "updated" or "new" as far as what to do with strings. If it's marked as "updated" it'll try to update the field, "new" it'll insert the field.



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Upgrading : Language File wizard [Re: Mark S] #256502
02/13/15 11:20 AM
02/13/15 11:20 AM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
"install/upgrade.php" looks within the "LANGUAGE_CHANGES.txt" file for "CHANGED", "NEW", "REMOVED" line items.
There is also "DELETED", for removing the whole language file -- very rare.

Looking at this single line within LANGUAGE_CHANGES.txt, just for example:
VERSION-7.5.9:CHANGED:FILE-addpost.php:KEY-$ubbt_lang['POST_ICON']:VALUE-"Post Icon";

CHANGED - Changed Language Strings
1. The upgrade file will look at the version: VERSION-7.5.9
2. It will take the COMMAND of: CHANGED
3. It will look in this FILE: addpost.php
4. For this KEY: $ubbt_lang['POST_ICON']
5. And will rename whatever VALUE is currently there, to this: "Post Icon"

NEW - New Language Strings
If COMMAND = "NEW", the line will be added to the end of the language FILE

REMOVED - Removed Language Strings
If COMMAND = "REMOVED", then it the FILE will be searched for that KEY and will remove just that line.

DELETED - Remove Language Files
This will delete the whole language file. It cleans up files that are no longer used. Its very rare that this option is ever used, but it does get used.


Within the upgrade process, there are two button options given when you reach the language upgrade steps.
option 1 - "Update my language files"
this will automatically do everything for you. If you have custom modifications within your language files, its recommended to update them yourself, and choose option 2

option 2 - "I have updated my language files by hand"
This will bypass the language file updater, allowing you to use a program such as, "BeyondCompare" to compare and manually update your current language files with the new ones from the /languages/english/ directory.

Re: Upgrading : Language File wizard [Re: Mark S] #256509
02/15/15 09:55 AM
02/15/15 09:55 AM
Joined: Jul 2006
Posts: 4,704
Liverpool : England : UK
Mark S Offline OP
Mark S  Offline OP

Joined: Jul 2006
Posts: 4,704
Liverpool : England : UK
Thanks guys clear Now smile


Version v7.5.8
People who inspire me Gizmo ID242 SD
Its been a long road. . . .to be waiting

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Users Unable to Upload Avatar [Not a Bug]
by M4TT. 12/13/17 08:51 AM
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
Forum Statistics
Forums36
Topics35,015
Posts190,544
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)