Improved i18n

This commit is contained in:
burke.davey
2010-08-06 22:09:38 +00:00
parent 9bf6643fc5
commit d2632102ca
4 changed files with 202 additions and 24 deletions

View File

@@ -58,5 +58,65 @@
"device_not_registered_message": {
"message": "Device not registered for user.",
"description": "Error message when we can't match a user to a device."
},
"about_title_message": {
"message": "About",
"description": "Section title in help."
},
"about_message": {
"message": "Chrome to Phone, from Google, enables you to send links and other information from Chrome to your Android device.<br>Chrome to Phone is comprised of a Chrome browser extension and an Android application.",
"description": "About message in help."
},
"features_title_message": {
"message": "Features",
"description": "Section title in help."
},
"features_message": {
"message": "<ul><li>Send browser links from Chrome to your phone.</li><li>Google Maps links launch the Google Maps application on Android.</li><li>YouTube links launch the YouTube application on Android.</li><li>Selecting a phone number will automatically launch the dialer with the number populated.</li><li>Selecting text on a Web page will copy the clipboard to Android (long press a text box to paste on Android).</li></ul>",
"description": "Features message in help."
},
"step2_message": {
"message": "Search for 'Chrome to Phone' at chrome.google.com/extensions.",
"description": "Comic step 2 in help."
},
"step3_message": {
"message": "Install the Chrome to Phone extension and click on the toolbar icon to sign in.",
"description": "Comic step 3 in help."
},
"step4_message": {
"message": "Search for 'Chrome to Phone' in Market on your Android device.",
"description": "Comic step 4 in help."
},
"step5_message": {
"message": "Install the Chrome to Phone Android app and complete the simple set-up process.",
"description": "Comic step 5 in help."
},
"step6_message": {
"message": "Click the toolbar icon to send the link or currently selected text to your phone.",
"description": "Comic step 6 in help."
},
"signed_in_message": {
"message": "Signed in. You are now ready to send links to your phone.",
"description": "Signed in message."
},
"about_google_message": {
"message": "About",
"description": "About."
},
"privacy_message": {
"message": "Privacy",
"description": "Privacy."
},
"tos_message": {
"message": "Terms of Service",
"description": "Terms of Service."
},
"signed_out_title_message": {
"message": "Signed out",
"description": "Signed out section title."
},
"signed_out_message": {
"message": "You are now signed out of Chrome to Phone.",
"description": "Signed out message."
}
}

View File

@@ -0,0 +1,122 @@
{
"app_name": {
"message": "Google Chrome to Phone Extension",
"description": "Name of the application"
},
"app_desc": {
"message": "Google Chrome to Phone Extension enables you to send links and other information from Chrome to your Android device.",
"description": "Description of the application."
},
"sending_message": {
"message": "Sending to phone...",
"description": "Notice when link is being sent to phone."
},
"sent_message": {
"message": "Sent to phone.",
"description": "Notice when link has been successfully sent to phone."
},
"error_sending_message": {
"message": "Error sending to phone: $details$",
"description": "Notice when link cannot be sent.",
"placeholders": {
"details": {
"content": "$1",
"example": "Failed to send message."
}
}
},
"sign_in_required_message": {
"message": "Please $link$ to Chrome to Phone.</a>",
"description": "Notice when sign in is required.",
"placeholders": {
"link": {
"content": "$1",
"example": "Sign in link."
}
}
},
"sign_in_message": {
"message": "sign in",
"description": "Sign in phrase used in sign_in_required_message."
},
"sign_out_message": {
"message": "Sign out",
"description": "Sign out link message."
},
"invalid_scheme_message": {
"message": "Only http or https pages supported.",
"description": "Notice when user attempt to send a file link."
},
"help_message": {
"message": "Help",
"description": "The help message."
},
"connectivity_error_message": {
"message": "Connection error.",
"description": "Error message when there is a connection error with the server."
},
"device_not_registered_message": {
"message": "Device not registered for user.",
"description": "Error message when we can't match a user to a device."
},
"about_title_message": {
"message": "About",
"description": "Section title in help."
},
"about_message": {
"message": "Chrome to Phone, from Google, enables you to send links and other information from Chrome to your Android device.<br>Chrome to Phone is comprised of a Chrome browser extension and an Android application.",
"description": "About message in help."
},
"features_title_message": {
"message": "Features",
"description": "Section title in help."
},
"features_message": {
"message": "<ul><li>Send browser links from Chrome to your phone.</li><li>Google Maps links launch the Google Maps application on Android.</li><li>YouTube links launch the YouTube application on Android.</li><li>Selecting a phone number will automatically launch the dialer with the number populated.</li><li>Selecting text on a Web page will copy the clipboard to Android (long press a text box to paste on Android).</li></ul>",
"description": "Features message in help."
},
"step2_message": {
"message": "Search for 'Chrome to Phone' at chrome.google.com/extensions.",
"description": "Comic step 2 in help."
},
"step3_message": {
"message": "Install the Chrome to Phone extension and click on the toolbar icon to sign in.",
"description": "Comic step 3 in help."
},
"step4_message": {
"message": "Search for 'Chrome to Phone' in Market on your Android device.",
"description": "Comic step 4 in help."
},
"step5_message": {
"message": "Install the Chrome to Phone Android app and complete the simple set-up process.",
"description": "Comic step 5 in help."
},
"step6_message": {
"message": "Click the toolbar icon to send the link or currently selected text to your phone.",
"description": "Comic step 6 in help."
},
"signed_in_message": {
"message": "Signed in. You are now ready to send links to your phone.",
"description": "Signed in message."
},
"about_google_message": {
"message": "About",
"description": "About."
},
"privacy_message": {
"message": "Privacy",
"description": "Privacy."
},
"tos_message": {
"message": "Terms of Service",
"description": "Terms of Service."
},
"signed_out_title_message": {
"message": "Signed out",
"description": "Signed out section title."
},
"signed_out_message": {
"message": "You are now signed out of Chrome to Phone.",
"description": "Signed out message."
}
}

View File

@@ -31,8 +31,8 @@ body,td {
<script type="text/javascript">
function signInAction() {
if (document.location.hash == '#signed_in') {
document.getElementById('signed_in').innerHTML =
'<p><b><font color="#00A000">Signed in. You are now ready to send links to your phone.</font></b></p>';
document.getElementById('signed_in').innerHTML = '<p><b><font color="#00A000">' +
chrome.i18n.getMessage('signed_in_message') + '</font></b></p>';
}
}
</script>
@@ -43,19 +43,12 @@ body,td {
<div id="signed_in"></div>
<h2 style="padding-left: 10px">About</h2>
<p style="padding-left: 10px">Chrome to Phone, from Google, enables you to send links and other information from Chrome to your Android device. <br>
Chrome to Phone is comprised of a Chrome browser extension and an Android application.</p>
<h2 style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('about_title_message'));</script></h2>
<p style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('about_message'));</script></p>
<h2 style="padding-left: 10px">Features</h2>
<h2 style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('features_title_message'));</script></h2>
<ul>
<li>Send browser links from Chrome to your phone.</li>
<li>Google Maps links launch the Google Maps application on Android.</li>
<li>YouTube links launch the YouTube application on Android.</li>
<li>Selecting a phone number will automatically launch the dialer with the number populated.</li>
<li>Selecting text on a Web page will copy the clipboard to Android (long press a text box to paste on Android).</li>
</ul>
<script>document.write(chrome.i18n.getMessage('features_message'));</script>
<table width="1131px">
<tr>
@@ -65,8 +58,8 @@ Chrome to Phone is comprised of a Chrome browser extension and an Android applic
</tr>
<tr>
<td></td>
<td style="padding-left: 10px">Search for 'Chrome to Phone' at chrome.google.com/extensions.</td>
<td style="padding-left: 10px">Install the Chrome to Phone extension and click on the toolbar icon to sign in.</td>
<td style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('step2_message'));</script></td>
<td style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('step3_message'));</script></td>
</tr>
<tr>
<td width="33%"><img src="comic4.png"></td>
@@ -74,14 +67,15 @@ Chrome to Phone is comprised of a Chrome browser extension and an Android applic
<td width="33%"><img src="comic6.png"></td>
</tr>
<tr>
<td style="padding-left: 10px">Search for 'Chrome to Phone' in Market on your Android device.</td>
<td style="padding-left: 10px">Install the Chrome to Phone Android app and complete the simple set-up process.</td>
<td style="padding-left: 10px">Click the toolbar icon to send the link or currently selected text to your phone.</td>
<td style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('step4_message'));</script></td>
<td style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('step5_message'));</script></td>
<td style="padding-left: 10px"><script>document.write(chrome.i18n.getMessage('step6_message'));</script></td>
</tr>
</table>
<br>
<div align="center"><br>&copy;2010 Google - <a href="http://www.google.com/intl/en/about.html">About Google</a> -
<a href="http://www.google.com/privacy.html">Privacy</a> - <a href="http://chrome.google.com/extensions/intl/en/gallery_tos.html">Terms of Service</a></div>
<div align="center"><br>&copy;2010 Google - <a href="http://www.google.com/intl/en/about.html"><script>document.write(chrome.i18n.getMessage('about_google_message'));</script></a> -
<a href="http://www.google.com/privacy.html"><script>document.write(chrome.i18n.getMessage('privacy_message'));</script></a> -
<a href="http://chrome.google.com/extensions/intl/en/gallery_tos.html"><script>document.write(chrome.i18n.getMessage('tos_message'));</script></a></div>
</body>
</html>

View File

@@ -32,10 +32,12 @@ body {
<body>
<h1><img src="icon_128.png" width="64" height="64" valign="bottom">&nbsp;Google Chrome to Phone Extension</h1>
<h2>Signed out</h2>
<p>You are now signed out of Chrome to Phone.</p>
<h2><script>document.write(chrome.i18n.getMessage('signed_out_title_message'));</script></h2>
<p><script>document.write(chrome.i18n.getMessage('signed_out_message'));</script></p>
<div align="center"><br>&copy;2010 Google - <a href="http://www.google.com/intl/en/about.html"><script>document.write(chrome.i18n.getMessage('about_google_message'));</script></a> -
<a href="http://www.google.com/privacy.html"><script>document.write(chrome.i18n.getMessage('privacy_message'));</script></a> -
<a href="http://chrome.google.com/extensions/intl/en/gallery_tos.html"><script>document.write(chrome.i18n.getMessage('tos_message'));</script></a></div>
<div align="center"><br>&copy;2010 Google - <a href="http://www.google.com/intl/en/about.html">About Google</a> -
<a href="http://www.google.com/privacy.html">Privacy</a> - <a href="http://chrome.google.com/extensions/intl/en/gallery_tos.html">Terms of Service</a></div>
</body>
</html>