About replace some translated phrases

Ask for help and post your question on how to use XnView MP.

Moderator: xnview

ctlu999
Posts: 13
Joined: Fri Jun 05, 2026 12:18 am

About replace some translated phrases

Post by ctlu999 »

I want to replace some translated phrases (Key DB) that are also used in the database.
Will they still be in the same category after a program update?
Or I'd better keep them?
User avatar
user0
XnThusiast
Posts: 3060
Joined: Sat May 09, 2015 9:37 am

Re: About replace some translated phrases

Post by user0 »

feel free to update them, eg 'Other'
it only affects db when there are no existing related records (eg on the first run)

also, keep an eye on the 'Nearby strings' and 'Other occurrences' tabs,
as they can provide useful hints for maintaining translation consistency
ctlu999
Posts: 13
Joined: Fri Jun 05, 2026 12:18 am

Re: About replace some translated phrases

Post by ctlu999 »

Thanks a lot

So, is it means if I have 5 images already assigned to Category ‘其他‘:
其他 (5)

Then replace the translated phrases ‘其他‘ to ‘其它v2‘

After update the new version app with new version translation

The Category become to?
其它v2 (5)

Or become to?
其他 (5)
其它v2 (0)
User avatar
user0
XnThusiast
Posts: 3060
Joined: Sat May 09, 2015 9:37 am

Re: About replace some translated phrases

Post by user0 »

on first run, app creates XnView.db and fills Tags table using the current language.
Updating translation file will not update existing database data automatically unless you delete old entries from XnView.db.

you can check how it works:
1. download Qt Linguist
2. modify DB>Other in translation file in app folder, eg ../language/xnview_zh_CN.qm
3. run XnView
old name remains
4. delete db
5. run XnView again
new name appears
ctlu999
Posts: 13
Joined: Fri Jun 05, 2026 12:18 am

Re: About replace some translated phrases

Post by ctlu999 »

Got it , thanks

But I have another question:
I didn’t see the .../language/*.qm in the /.XnViewMP folder with Mac.
Where they are in Mac?
User avatar
user0
XnThusiast
Posts: 3060
Joined: Sat May 09, 2015 9:37 am

Re: About replace some translated phrases

Post by user0 »

no idea, try search with Finder / Spotlight
ctlu999
Posts: 13
Joined: Fri Jun 05, 2026 12:18 am

Re: About replace some translated phrases

Post by ctlu999 »

OK, thank you