mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Moved FN/LN definitions to .dtd to allow localizer to change the order.
bug 160544, r=cavin, sr=sspitzer.
This commit is contained in:
parent
41c82bd68f
commit
e2128da102
@ -127,11 +127,15 @@ function OnLoadNewCard()
|
||||
// FIX ME - looks like we need to focus on both the text field and the tab widget
|
||||
// probably need to do the same in the addressing widget
|
||||
|
||||
// focus on first name
|
||||
var firstName = document.getElementById('FirstName');
|
||||
if ( firstName ) {
|
||||
// focus on first or last name based on the pref
|
||||
var focus;
|
||||
if (editCard.displayLastNameFirst)
|
||||
focus = document.getElementById('LastName');
|
||||
else
|
||||
focus = document.getElementById('FirstName');
|
||||
if ( focus ) {
|
||||
// XXX Using the setTimeout hack until bug 103197 is fixed
|
||||
setTimeout( function(firstTextBox) { firstTextBox.focus(); }, 0, firstName );
|
||||
setTimeout( function(firstTextBox) { firstTextBox.focus(); }, 0, focus );
|
||||
}
|
||||
moveToAlertPosition();
|
||||
}
|
||||
|
@ -52,18 +52,23 @@ Rights Reserved.
|
||||
<caption label="&Name.box;"/>
|
||||
|
||||
<vbox style="width:100%">
|
||||
<!-- LOCALIZATION NOTE:
|
||||
NameField1, NameField2,
|
||||
those fields are either LN or FN depends on the target country.
|
||||
They are configurable in the .dtd file.
|
||||
-->
|
||||
<hbox>
|
||||
<spacer flex="1"/>
|
||||
<label control="FirstName" value="&FirstName.label;" class="CardEditLabel"/>
|
||||
<label control="&NameField1.id;" value="&NameField1.label;" class="CardEditLabel"/>
|
||||
<hbox class="CardEditWidth">
|
||||
<textbox id="FirstName" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>
|
||||
<textbox id="&NameField1.id;" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>
|
||||
</hbox>
|
||||
</hbox>
|
||||
<hbox>
|
||||
<spacer flex="1"/>
|
||||
<label control="LastName" value="&LastName.label;" class="CardEditLabel"/>
|
||||
<label control="&NameField2.id;" value="&NameField2.label;" class="CardEditLabel"/>
|
||||
<hbox class="CardEditWidth">
|
||||
<textbox id="LastName" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>
|
||||
<textbox id="&NameField2.id;" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>
|
||||
</hbox>
|
||||
</hbox>
|
||||
<hbox>
|
||||
|
@ -20,8 +20,21 @@ Rights Reserved.
|
||||
|
||||
<!ENTITY Contact.tab "Contact">
|
||||
<!ENTITY Name.box "Name">
|
||||
<!ENTITY FirstName.label "First:">
|
||||
<!ENTITY LastName.label "Last:">
|
||||
<!-- LOCALIZATION NOTE:
|
||||
NameField1, NameField2,
|
||||
those fields are either LN or FN depends on the target country.
|
||||
"FirstName" and "LastName" can be swapped for id to change the order
|
||||
but they should not be translated.
|
||||
Make sure the translation of label corresponds to the order of id.
|
||||
-->
|
||||
|
||||
<!-- LOCALIZATION NOTE (NameField1.id) : DONT_TRANSLATE -->
|
||||
<!ENTITY NameField1.id "FirstName">
|
||||
<!-- LOCALIZATION NOTE (NameField2.id) : DONT_TRANSLATE -->
|
||||
<!ENTITY NameField2.id "LastName">
|
||||
|
||||
<!ENTITY NameField1.label "First:">
|
||||
<!ENTITY NameField2.label "Last:">
|
||||
<!ENTITY DisplayName.label "Display:">
|
||||
<!ENTITY NickName.label "Nickname:">
|
||||
<!ENTITY Internet.box "Internet">
|
||||
|
Loading…
Reference in New Issue
Block a user