| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * @fileoverview Defined the convenience function cvox.Msgs.getMsg. | |
| 7 */ | |
| 8 | |
| 9 goog.provide('cvox.AbstractMsgs'); | |
| 10 | |
| 11 | |
| 12 | |
| 13 /** | |
| 14 * @constructor | |
| 15 */ | |
| 16 cvox.AbstractMsgs = function() { }; | |
| 17 | |
| 18 | |
| 19 | |
| 20 /** | |
| 21 * Return the current locale. | |
| 22 * @return {string} The locale. | |
| 23 */ | |
| 24 cvox.AbstractMsgs.prototype.getLocale = function() { }; | |
| 25 | |
| 26 | |
| 27 /** | |
| 28 * Returns the message with the given message id. | |
| 29 * | |
| 30 * If we can't find a message, throw an exception. This allows us to catch | |
| 31 * typos early. | |
| 32 * | |
| 33 * @param {string} message_id The id. | |
| 34 * @param {Array.<string>=} opt_subs Substitution strings. | |
| 35 * @return {string} The message. | |
| 36 */ | |
| 37 cvox.AbstractMsgs.prototype.getMsg = function(message_id, opt_subs) { | |
| 38 }; | |
| 39 | |
| 40 | |
| 41 /** | |
| 42 * Retuns a number formatted correctly. | |
| 43 * | |
| 44 * @param {number} num The number. | |
| 45 * @return {string} The number in the correct locale. | |
| 46 */ | |
| 47 cvox.AbstractMsgs.prototype.getNumber = function(num) { | |
| 48 }; | |
| OLD | NEW |