• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-runtime/intl-csharp/

Lines Matching refs:msgid

261     /// Returns the translation of <paramref name="msgid"/> in a given culture.
263 /// <param name="msgid">the key string to be translated, an ASCII
265 /// <returns>the translation of <paramref name="msgid"/>, or
266 /// <paramref name="msgid"/> if none is found</returns>
267 public override String GetString (String msgid, CultureInfo culture) {
269 String translation = rs.GetString(msgid);
274 return msgid;
278 /// Returns the translation of <paramref name="msgid"/> and
282 /// <param name="msgid">the key string to be translated, an ASCII
284 /// <param name="msgidPlural">the English plural of <paramref name="msgid"/>,
287 /// <returns>the translation, or <paramref name="msgid"/> or
289 public virtual String GetPluralString (String msgid, String msgidPlural, long n, CultureInfo culture) {
291 String translation = rs.GetPluralString(msgid, msgidPlural, n);
296 return (n == 1 ? msgid : msgidPlural);
302 /// Returns the translation of <paramref name="msgid"/> in the context
307 /// <param name="msgid">the key string to be translated, an ASCII
309 /// <returns>the translation of <paramref name="msgid"/>, or
310 /// <paramref name="msgid"/> if none is found</returns>
311 public String GetParticularString (String msgctxt, String msgid, CultureInfo culture) {
312 String combined = msgctxt + "\u0004" + msgid;
319 return msgid;
323 /// Returns the translation of <paramref name="msgid"/> and
330 /// <param name="msgid">the key string to be translated, an ASCII
332 /// <param name="msgidPlural">the English plural of <paramref name="msgid"/>,
335 /// <returns>the translation, or <paramref name="msgid"/> or
337 public virtual String GetParticularPluralString (String msgctxt, String msgid, String msgidPlural, long n, CultureInfo culture) {
338 String combined = msgctxt + "\u0004" + msgid;
345 return (n == 1 ? msgid : msgidPlural);
349 /// Returns the translation of <paramref name="msgid"/> in the current
352 /// <param name="msgid">the key string to be translated, an ASCII
354 /// <returns>the translation of <paramref name="msgid"/>, or
355 /// <paramref name="msgid"/> if none is found</returns>
356 public override String GetString (String msgid) {
357 return GetString(msgid, CultureInfo.CurrentUICulture);
361 /// Returns the translation of <paramref name="msgid"/> and
365 /// <param name="msgid">the key string to be translated, an ASCII
367 /// <param name="msgidPlural">the English plural of <paramref name="msgid"/>,
370 /// <returns>the translation, or <paramref name="msgid"/> or
372 public virtual String GetPluralString (String msgid, String msgidPlural, long n) {
373 return GetPluralString(msgid, msgidPlural, n, CultureInfo.CurrentUICulture);
377 /// Returns the translation of <paramref name="msgid"/> in the context
382 /// <param name="msgid">the key string to be translated, an ASCII
384 /// <returns>the translation of <paramref name="msgid"/>, or
385 /// <paramref name="msgid"/> if none is found</returns>
386 public String GetParticularString (String msgctxt, String msgid) {
387 return GetParticularString(msgctxt, msgid, CultureInfo.CurrentUICulture);
391 /// Returns the translation of <paramref name="msgid"/> and
398 /// <param name="msgid">the key string to be translated, an ASCII
400 /// <param name="msgidPlural">the English plural of <paramref name="msgid"/>,
403 /// <returns>the translation, or <paramref name="msgid"/> or
405 public virtual String GetParticularPluralString (String msgctxt, String msgid, String msgidPlural, long n) {
406 return GetParticularPluralString(msgctxt, msgid, msgidPlural, n, CultureInfo.CurrentUICulture);
466 /// Returns the translation of <paramref name="msgid"/>.
468 /// <param name="msgid">the key string to be translated, an ASCII
470 /// <returns>the translation of <paramref name="msgid"/>, or <c>null</c> if
472 // The default implementation essentially does (String)Table[msgid].
474 public override String GetString (String msgid) {
475 Object value = GetObject(msgid);
483 throw new InvalidOperationException("resource for \""+msgid+"\" in "+GetType().FullName+" is not a string");
487 /// Returns the translation of <paramref name="msgid"/>, with possibly
490 /// <param name="msgid">the key string to be translated, an ASCII
492 /// <returns>the translation of <paramref name="msgid"/>, or <c>null</c> if
494 // The default implementation essentially does (String)Table[msgid].
496 public override String GetString (String msgid, bool ignoreCase) {
497 Object value = GetObject(msgid, ignoreCase);
505 throw new InvalidOperationException("resource for \""+msgid+"\" in "+GetType().FullName+" is not a string");
509 /// Returns the translation of <paramref name="msgid"/> and
513 /// <param name="msgid">the key string to be translated, an ASCII
515 /// <param name="msgidPlural">the English plural of <paramref name="msgid"/>,
519 public virtual String GetPluralString (String msgid, String msgidPlural, long n) {
520 Object value = GetObject(msgid);
528 throw new InvalidOperationException("resource for \""+msgid+"\" in "+GetType().FullName+" is not a string");