Fix plural counts by selecting en_US as the default locale
We only have translations for the messages in English, but to make the @PluralCount code kick in right for even that language we must set our local to some form of English and provide some translation files for that language. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -3,10 +3,8 @@
|
||||
<inherits name='com.google.gwt.i18n.I18N'/>
|
||||
<inherits name='com.google.gwtjsonrpc.GWTJSONRPC'/>
|
||||
<inherits name='com.google.gwtorm.GWTORM'/>
|
||||
|
||||
<inherits name='com.google.gwt.user.theme.chrome.Chrome'/>
|
||||
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||
<extend-property name="locale" values="en"/>
|
||||
|
||||
<!-- openid.AllowFrameImpl -->
|
||||
<replace-with class="com.google.gerrit.client.openid.AllowFrameImpl">
|
||||
|
@@ -7,10 +7,7 @@ patchSetHeader = Patch Set {0}
|
||||
patchSetAction = {0} Patch Set {1}
|
||||
repoDownload = repo download {0} {1}/{2}
|
||||
|
||||
patchTableComments[one] = 1 comment
|
||||
patchTableComments = {0} comments
|
||||
|
||||
patchTableDrafts[one] = 1 draft
|
||||
patchTableDrafts = {0} drafts
|
||||
|
||||
messageWrittenOn = on {0}
|
||||
|
@@ -0,0 +1,5 @@
|
||||
patchTableComments[one] = 1 comment
|
||||
patchTableComments = {0} comments
|
||||
|
||||
patchTableDrafts[one] = 1 draft
|
||||
patchTableDrafts = {0} drafts
|
@@ -1,6 +1,5 @@
|
||||
patchHeaderAncestor = Ancestor {0}
|
||||
|
||||
patchSkipRegion[one] = (... skipping 1 common line ...)
|
||||
patchSkipRegion = (...skipping {0} common lines ...)
|
||||
|
||||
draftSaved = Draft saved at {0,time,short}
|
||||
|
@@ -0,0 +1,2 @@
|
||||
patchSkipRegion[one] = (... skipping 1 common line ...)
|
||||
patchSkipRegion = (...skipping {0} common lines ...)
|
@@ -1,6 +1,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Gerrit Code Review</title>
|
||||
<meta name="gwt:property" content="locale=en_US" />
|
||||
<script id="gerrit_gerritconfig"></script>
|
||||
<script type="text/javascript" language="javascript" src="com.google.gerrit.Gerrit.nocache.js"></script>
|
||||
<style type="text/css" id="gerrit_sitecss"></style>
|
||||
|
Reference in New Issue
Block a user