VirtualBox

13 年 前 建立

8 年 前 結束

#10398 closed defect (obsolete)

String place marker error single/plural in source VirtualBox.ts %1 instead of %n - old format error

回報者: Richard E van der Luit 負責人:
元件: other 版本: VirtualBox 4.1.10
關鍵字: translation string single plural 'place marker' 副本:
Guest type: all Host type: all

描述

In Qt Linguist:

UIMessageCenter, string 211/253:


<p>The virtual machine(s) <b>%1</b> are currently in a saved state.</p><p>If you continue the runtime state of the exported machine(s) will be discarded. Note that the existing machine(s) are not changed.</p>


%1 should be %n for single/dual translation string, and (s) should not be in text anymore

currently not translatable, if translator follows %1, validation error, if translator follows %n validation error as well

svn updated 30 march 2012, revision 40717

hope this will be corrected very soon... grtz Richard

更動歷史 (10)

comment:1 13 年 前Richard E van der Luit 編輯

In Qt Linguist:

UIMessageCenter, string


<p>The virtual machine(s) <b>%1</b> are currently in a saved state.</p><p>If you continue the runtime state of the exported machine(s) will be discarded. Note that the existing machine(s) are not changed.</p>


%1 should be %n for single/dual translation string, and (s) should not be in text anymore

currently not translatable, if translator follows %1, validation error, if translator follows %n validation error as well

svn updated 30 march 2012, revision 40717

hope this will be corrected very soon... grtz Richard

comment:2 13 年 前Michael Thayer 編輯

Hello Richard. Please use 4503 for reporting translation issues rather than opening a new ticket. That said... yes this is wrong in the original text. That shouldn't prevent you from translating it correctly, though it may cause some hiccups when I correct it.

comment:3 13 年 前Michael Thayer 編輯

Note that when I open VirtualBox_nl.ts in Linguist it correctly asks me for singular and plural.

comment:4 13 年 前Michael Thayer 編輯

I looked at that again - are you sure it is wrong? The sentence needs to be translated differently for different grammatical numbers, but the number itself is not supposed to appear in the sentence, hence the missing %n marker.

comment:5 13 年 前Richard E van der Luit 編輯

Yep, Qt Linguist gives me an error warning saying:

"Translation does not contain the necessary %n place marker"

I do get the single/plural lines to translate, it just doesn't validate

How can i upload the reviewed translation files btw? i don't see an attachmet option at ticket 2018?

regards richard

comment:6 13 年 前Michael Thayer 編輯

Yes, you are right that that could be problematic (e.g. the comma-separated list will not look right in Arabic if someone ever updates our Arabic translation). Any suggestions for how to improve the source text?

comment:7 13 年 前Richard E van der Luit 編輯

Maybe changing the string into:


"There are %n virtual machine(s), <b>%1</b>, currently in a saved state.[...]"


or


"%n virtual machine(s), <b>%1</b>, currently in a saved state.[...]"


avoiding 'are'/'is' issue, and

with a %n count on the comma-separated list, and still honoring listing of the names? (probably tackles Qt Linguist validation error)

Don't now how if that tackles the listing in Arabic though, not an expert on that soz. Maybe sub-menu (click on 'Show list') for another window with list, instead of <b>%1</b>?

regards Richard

最後由 Richard E van der Luit 編輯於 13 年 前 (上一筆) (差異)

comment:8 13 年 前Michael Thayer 編輯

I changed this to "<p>The %n following virtual machine(s) are currently in a saved state: <b>%1</b></p><p>If you continue the runtime state of the exported machine(s) will be discarded. The other machine(s) will not be changed.</p>". I also changed the code not to put commas between the machine names. Not yet in 4.1. It won't be very nice in the singular ("The following 1 machine is currently..."), but so be it.

comment:9 13 年 前Michael Thayer 編輯

I have manually (well, using sed) changed all translation files to re-use the old translation where there was one. So this change will not require anyone to make changes to their translation if it was already complete before.

comment:10 8 年 前aeichner 編輯

狀態: newclosed
處理結果: obsolete

Please reopen if still relevant with a recent VirtualBox release.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette