| 1 | /* |
| 2 | * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 | * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com |
| 4 | * Copyright (C) 2007 Holger Hans Peter Freyther |
| 5 | * Copyright (C) 2008 Christian Dywan <christian@imendio.com> |
| 6 | * Copyright (C) 2008 Nuanti Ltd. |
| 7 | * Copyright (C) 2010 Igalia S.L |
| 8 | * |
| 9 | * Redistribution and use in source and binary forms, with or without |
| 10 | * modification, are permitted provided that the following conditions |
| 11 | * are met: |
| 12 | * 1. Redistributions of source code must retain the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer. |
| 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| 15 | * notice, this list of conditions and the following disclaimer in the |
| 16 | * documentation and/or other materials provided with the distribution. |
| 17 | * |
| 18 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY |
| 19 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 21 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR |
| 22 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 23 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 24 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 25 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 26 | * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | */ |
| 30 | |
| 31 | #include "config.h" |
| 32 | #include "LocalizedStrings.h" |
| 33 | |
| 34 | #include <wtf/glib/GUniquePtr.h> |
| 35 | #include <wtf/text/CString.h> |
| 36 | #include <wtf/text/WTFString.h> |
| 37 | |
| 38 | namespace WebCore { |
| 39 | |
| 40 | #if ENABLE(CONTEXT_MENUS) |
| 41 | String () |
| 42 | { |
| 43 | return String::fromUTF8(_("Copy Link Loc_ation" )); |
| 44 | } |
| 45 | |
| 46 | String () |
| 47 | { |
| 48 | return String::fromUTF8(_("Sa_ve Image As" )); |
| 49 | } |
| 50 | |
| 51 | String () |
| 52 | { |
| 53 | return String::fromUTF8(_("Copy Image _Address" )); |
| 54 | } |
| 55 | |
| 56 | String () |
| 57 | { |
| 58 | return String::fromUTF8(_("Cop_y Video Link Location" )); |
| 59 | } |
| 60 | |
| 61 | String () |
| 62 | { |
| 63 | return String::fromUTF8(_("Cop_y Audio Link Location" )); |
| 64 | } |
| 65 | |
| 66 | String () |
| 67 | { |
| 68 | return String::fromUTF8(_("_Toggle Media Controls" )); |
| 69 | } |
| 70 | |
| 71 | String () |
| 72 | { |
| 73 | return String::fromUTF8(_("_Show Media Controls" )); |
| 74 | } |
| 75 | |
| 76 | String () |
| 77 | { |
| 78 | return String::fromUTF8(_("_Hide Media Controls" )); |
| 79 | } |
| 80 | |
| 81 | String () |
| 82 | { |
| 83 | return String::fromUTF8(_("Toggle Media _Loop Playback" )); |
| 84 | } |
| 85 | |
| 86 | String () |
| 87 | { |
| 88 | return String::fromUTF8(_("Switch Video to _Fullscreen" )); |
| 89 | } |
| 90 | |
| 91 | String () |
| 92 | { |
| 93 | return String::fromUTF8(_("_Delete" )); |
| 94 | } |
| 95 | |
| 96 | String () |
| 97 | { |
| 98 | return String::fromUTF8(_("Select _All" )); |
| 99 | } |
| 100 | |
| 101 | String () |
| 102 | { |
| 103 | return String::fromUTF8(_("Insert _Emoji" )); |
| 104 | } |
| 105 | |
| 106 | String () |
| 107 | { |
| 108 | return String::fromUTF8(_("_Insert Unicode Control Character" )); |
| 109 | } |
| 110 | |
| 111 | String () |
| 112 | { |
| 113 | return String::fromUTF8(_("Input _Methods" )); |
| 114 | } |
| 115 | |
| 116 | String () |
| 117 | { |
| 118 | return String::fromUTF8(_("LRM _Left-to-right mark" )); |
| 119 | } |
| 120 | |
| 121 | String () |
| 122 | { |
| 123 | return String::fromUTF8(_("RLM _Right-to-left mark" )); |
| 124 | } |
| 125 | |
| 126 | String () |
| 127 | { |
| 128 | return String::fromUTF8(_("LRE Left-to-right _embedding" )); |
| 129 | } |
| 130 | |
| 131 | String () |
| 132 | { |
| 133 | return String::fromUTF8(_("RLE Right-to-left e_mbedding" )); |
| 134 | } |
| 135 | |
| 136 | String () |
| 137 | { |
| 138 | return String::fromUTF8(_("LRO Left-to-right _override" )); |
| 139 | } |
| 140 | |
| 141 | String () |
| 142 | { |
| 143 | return String::fromUTF8(_("RLO Right-to-left o_verride" )); |
| 144 | } |
| 145 | |
| 146 | String () |
| 147 | { |
| 148 | return String::fromUTF8(_("PDF _Pop directional formatting" )); |
| 149 | } |
| 150 | |
| 151 | String () |
| 152 | { |
| 153 | return String::fromUTF8(_("ZWS _Zero width space" )); |
| 154 | } |
| 155 | |
| 156 | String () |
| 157 | { |
| 158 | return String::fromUTF8(_("ZWJ Zero width _joiner" )); |
| 159 | } |
| 160 | |
| 161 | String () |
| 162 | { |
| 163 | return String::fromUTF8(_("ZWNJ Zero width _non-joiner" )); |
| 164 | } |
| 165 | #endif // ENABLE(CONTEXT_MENUS) |
| 166 | |
| 167 | String validationMessageTooShortText(int, int minLength) |
| 168 | { |
| 169 | GUniquePtr<char> string(g_strdup_printf(ngettext("Use at least one character" , "Use at least %d characters" , minLength), minLength)); |
| 170 | return String::fromUTF8(string.get()); |
| 171 | } |
| 172 | |
| 173 | String validationMessageTooLongText(int, int maxLength) |
| 174 | { |
| 175 | GUniquePtr<char> string(g_strdup_printf(ngettext("Use no more than one character" , "Use no more than %d characters" , maxLength), maxLength)); |
| 176 | return String::fromUTF8(string.get()); |
| 177 | } |
| 178 | |
| 179 | } // namespace WebCore |
| 180 | |