チェンジセット 3759
- コミット日時:
- 2010/04/12 01:41:19 (3 年前)
- ファイル:
-
- as3/gunyarapaint/branches/gunyarapaint/compat/assets/langs.xml (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/compat/assets/locales/framework.po (移動) (as3/gunyarapaint/branches/gunyarapaint/compat/assets/locales/ja_jp.po から 移動)
- as3/gunyarapaint/branches/gunyarapaint/compat/assets/locales/ui.po (追加)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/_.as (追加)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/gunyarapaint.mxml (更新) (11 diffs)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/CopyrightWindow.mxml (更新) (1 diff)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/DataController.mxml (更新) (5 diffs)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/FileController.mxml (更新) (3 diffs)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/FormController.mxml (更新) (6 diffs)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/LayerController.mxml (更新) (6 diffs)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/PenController.mxml (更新) (4 diffs)
- as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/ToolController.mxml (更新) (4 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/gunyarapaint/branches/gunyarapaint/compat/assets/langs.xml
r3758 r3759 53 53 <msgstr>ひとつのレイヤーしか無いか、または不可視のレイヤーが見つかったため、レイヤーの統合が出来ません</msgstr> 54 54 </message> 55 <message> 56 <msgid>Layers</msgid> 57 <msgstr>レイヤーツール</msgstr> 58 </message> 59 <message> 60 <msgid>Invert</msgid> 61 <msgstr>反転</msgstr> 62 </message> 63 <message> 64 <msgid>Rounded square</msgid> 65 <msgstr>角丸つき四角</msgstr> 66 </message> 67 <message> 68 <msgid>Saving data to the file has been completed.</msgid> 69 <msgstr>ファイルの書き出しに成功しました</msgstr> 70 </message> 71 <message> 72 <msgid>Ellipse</msgid> 73 <msgstr>楕円</msgstr> 74 </message> 75 <message> 76 <msgid>Circle module</msgid> 77 <msgstr>円ツール</msgstr> 78 </message> 79 <message> 80 <msgid>Bold</msgid> 81 <msgstr>太</msgstr> 82 </message> 83 <message> 84 <msgid>Recovery center</msgid> 85 <msgstr>ふっかつのじゅもん</msgstr> 86 </message> 87 <message> 88 <msgid>Overlay</msgid> 89 <msgstr>オーバーレイ</msgstr> 90 </message> 91 <message> 92 <msgid>Unknown module</msgid> 93 <msgstr>不明のツール</msgstr> 94 </message> 95 <message> 96 <msgid>Very Bold</msgid> 97 <msgstr>極太</msgstr> 98 </message> 99 <message> 100 <msgid>Auxially Lines</msgid> 101 <msgstr>補助線</msgstr> 102 </message> 103 <message> 104 <msgid>Delete the layer</msgid> 105 <msgstr>削</msgstr> 106 </message> 107 <message> 108 <msgid>Flood fill</msgid> 109 <msgstr>塗りつぶし</msgstr> 110 </message> 111 <message> 112 <msgid>Hardlight</msgid> 113 <msgstr>ハードライト</msgstr> 114 </message> 115 <message> 116 <msgid>Add</msgid> 117 <msgstr>覆い焼き</msgstr> 118 </message> 119 <message> 120 <msgid>Failed your post for something wrong. Post again.</msgid> 121 <msgstr>何らかの原因で投稿に失敗しました。再投稿してください。</msgstr> 122 </message> 123 <message> 124 <msgid>Name</msgid> 125 <msgstr>投稿者名</msgstr> 126 </message> 127 <message> 128 <msgid>Flood fill module</msgid> 129 <msgstr>塗りつぶしツール</msgstr> 130 </message> 131 <message> 132 <msgid>The canvas is not drawn. You should draw the canvas.</msgid> 133 <msgstr>キャンバスが真っ白です。なにか描いてください。</msgstr> 134 </message> 135 <message> 136 <msgid>Line</msgid> 137 <msgstr>直線</msgstr> 138 </message> 139 <message> 140 <msgid>The Recovery center</msgid> 141 <msgstr>ふっかつのじゅもん</msgstr> 142 </message> 143 <message> 144 <msgid>Transparency of the layer</msgid> 145 <msgstr>透</msgstr> 146 </message> 147 <message> 148 <msgid>Divided by lines</msgid> 149 <msgstr>分割</msgstr> 150 </message> 151 <message> 152 <msgid>Darken</msgid> 153 <msgstr>比較(暗)</msgstr> 154 </message> 155 <message> 156 <msgid>Line module</msgid> 157 <msgstr>直線ツール</msgstr> 158 </message> 159 <message> 160 <msgid>Flood fill with transparent</msgid> 161 <msgstr>透明塗りつぶし</msgstr> 162 </message> 163 <message> 164 <msgid>Input password is incorrect.</msgid> 165 <msgstr>じゅもんがちがいます</msgstr> 166 </message> 167 <message> 168 <msgid>Recover</msgid> 169 <msgstr>ふっかつ</msgstr> 170 </message> 171 <message> 172 <msgid>Reset all windows position</msgid> 173 <msgstr>ウィンドウ初期状態</msgstr> 174 </message> 175 <message> 176 <msgid>Brushes</msgid> 177 <msgstr>ペンツール</msgstr> 178 </message> 179 <message> 180 <msgid>Support tools</msgid> 181 <msgstr>補助ツール</msgstr> 182 </message> 183 <message> 184 <msgid>Screen</msgid> 185 <msgstr>スクリーン</msgstr> 186 </message> 187 <message> 188 <msgid>State of the pen</msgid> 189 <msgstr>ペンの状態</msgstr> 190 </message> 191 <message> 192 <msgid>The transparency of the brush</msgid> 193 <msgstr>透</msgstr> 194 </message> 195 <message> 196 <msgid>Square</msgid> 197 <msgstr>四角</msgstr> 198 </message> 199 <message> 200 <msgid>Pixel brush</msgid> 201 <msgstr>ド</msgstr> 202 </message> 203 <message> 204 <msgid>Pixel module</msgid> 205 <msgstr>ドット打ちツール</msgstr> 206 </message> 207 <message> 208 <msgid>Rejected.</msgid> 209 <msgstr>かんちがいしています</msgstr> 210 </message> 211 <message> 212 <msgid>Select color to the palette</msgid> 213 <msgstr>パレットに入れる色を選択してください</msgstr> 214 </message> 215 <message> 216 <msgid>Load</msgid> 217 <msgstr>よみこみ</msgstr> 218 </message> 219 <message> 220 <msgid>Very Thin</msgid> 221 <msgstr>極細</msgstr> 222 </message> 223 <message> 224 <msgid>Mirror vertically to all layers</msgid> 225 <msgstr>全レイヤー上下反転</msgstr> 226 </message> 227 <message> 228 <msgid>Redo count</msgid> 229 <msgstr>リドゥ</msgstr> 230 </message> 231 <message> 232 <msgid>Create a new layer</msgid> 233 <msgstr>新</msgstr> 234 </message> 235 <message> 236 <msgid>Redo</msgid> 237 <msgstr>リドゥ</msgstr> 238 </message> 239 <message> 240 <msgid>Message</msgid> 241 <msgstr>書き込み</msgstr> 242 </message> 243 <message> 244 <msgid>Canvas</msgid> 245 <msgstr>キャンバス</msgstr> 246 </message> 247 <message> 248 <msgid>Lighten</msgid> 249 <msgstr>比較(明)</msgstr> 250 </message> 251 <message> 252 <msgid>Canvas Zoom</msgid> 253 <msgstr>拡大</msgstr> 254 </message> 255 <message> 256 <msgid>The layer is visible</msgid> 257 <msgstr>目</msgstr> 258 </message> 259 <message> 260 <msgid>Difference</msgid> 261 <msgstr>差の絶対値</msgstr> 262 </message> 263 <message> 264 <msgid>Freehand (or Eraser) module</msgid> 265 <msgstr>手書き(消しゴム)ツール</msgstr> 266 </message> 267 <message> 268 <msgid>Post form</msgid> 269 <msgstr>書き込みフォーム</msgstr> 270 </message> 271 <message> 272 <msgid>Divided by pixels</msgid> 273 <msgstr>ピクセル単位</msgstr> 274 </message> 275 <message> 276 <msgid>Title</msgid> 277 <msgstr>絵のタイトル</msgstr> 278 </message> 279 <message> 280 <msgid>Subtract</msgid> 281 <msgstr>除外</msgstr> 282 </message> 283 <message> 284 <msgid>Normal</msgid> 285 <msgstr>通常</msgstr> 286 </message> 287 <message> 288 <msgid>Exporting the bitmap of the canvas to PNG has been completed.</msgid> 289 <msgstr>キャンバスのPNGへの書き出しが完了しました</msgstr> 290 </message> 291 <message> 292 <msgid>Save</msgid> 293 <msgstr>ほぞん</msgstr> 294 </message> 295 <message> 296 <msgid>Eraser brush</msgid> 297 <msgstr>消</msgstr> 298 </message> 299 <message> 300 <msgid>The title is empty.</msgid> 301 <msgstr>絵のタイトルが空です。</msgstr> 302 </message> 303 <message> 304 <msgid>Oekakiko</msgid> 305 <msgstr>お絵カキコ</msgstr> 306 </message> 307 <message> 308 <msgid>Thin</msgid> 309 <msgstr>細</msgstr> 310 </message> 311 <message> 312 <msgid>Merge the layer</msgid> 313 <msgstr>統</msgstr> 314 </message> 315 <message> 316 <msgid>Post!</msgid> 317 <msgstr>お絵カキコする!</msgstr> 318 </message> 319 <message> 320 <msgid>Copy the layer</msgid> 321 <msgstr>複</msgstr> 322 </message> 323 <message> 324 <msgid>Middle</msgid> 325 <msgstr>中</msgstr> 326 </message> 327 <message> 328 <msgid>The load center</msgid> 329 <msgstr>ぼうけんのしょ</msgstr> 330 </message> 331 <message> 332 <msgid>Multiply</msgid> 333 <msgstr>乗算</msgstr> 334 </message> 335 <message> 336 <msgid>Auxiliary box</msgid> 337 <msgstr>縦横</msgstr> 338 </message> 339 <message> 340 <msgid>Add this to my Watchlist</msgid> 341 <msgstr>ウォッチリストに登録</msgstr> 342 </message> 343 <message> 344 <msgid>Copy to the clipboard</msgid> 345 <msgstr>クリップボードにコピー</msgstr> 346 </message> 347 <message> 348 <msgid>The information of copyrights</msgid> 349 <msgstr>著作権情報</msgstr> 350 </message> 351 <message> 352 <msgid>The layer name</msgid> 353 <msgstr>レイヤ名</msgstr> 354 </message> 355 <message> 356 <msgid>Undo</msgid> 357 <msgstr>アンドゥ</msgstr> 358 </message> 359 <message> 360 <msgid>Mirror horizontally to all layers</msgid> 361 <msgstr>全レイヤー左右反転</msgstr> 362 </message> 363 <message> 364 <msgid>Undo count</msgid> 365 <msgstr>アンドゥ</msgstr> 366 </message> 367 <message> 368 <msgid>Dropper</msgid> 369 <msgstr>スポイト</msgstr> 370 </message> 371 <message> 372 <msgid>The message is empty.</msgid> 373 <msgstr>書き込みが空です。</msgstr> 374 </message> 375 <message> 376 <msgid>The layer is locked</msgid> 377 <msgstr>ロ</msgstr> 378 </message> 379 <message> 380 <msgid>Thickness</msgid> 381 <msgstr>太</msgstr> 382 </message> 383 <message> 384 <msgid>Free hand</msgid> 385 <msgstr>手書き</msgstr> 386 </message> 387 <message> 388 <msgid>Select color</msgid> 389 <msgstr>色選択画面</msgstr> 390 </message> 391 <message> 392 <msgid>Dropper module</msgid> 393 <msgstr>スポイトツール</msgstr> 394 </message> 395 <message> 396 <msgid>Canvas Rotation</msgid> 397 <msgstr>角度</msgstr> 398 </message> 399 <message> 400 <msgid>Circle</msgid> 401 <msgstr>円</msgstr> 402 </message> 403 <message> 404 <msgid>Auxiliary skew</msgid> 405 <msgstr>斜め</msgstr> 406 </message> 407 <message> 408 <msgid>Mask the layer</msgid> 409 <msgstr>マ</msgstr> 410 </message> 411 <message> 412 <msgid>Dump</msgid> 413 <msgstr>かきだし</msgstr> 414 </message> 55 415 </lang> 56 416 </langs> as3/gunyarapaint/branches/gunyarapaint/compat/src/gunyarapaint.mxml
r3758 r3759 56 56 private var languages:Class; 57 57 58 public const ALERT_TITLE:String = "お絵カキコ";59 60 58 private const MAX_CANVAS_WIDTH:uint = 500; 61 59 private const MAX_CANVAS_HEIGHT:uint = 500; … … 86 84 switch (m_module.name) { 87 85 case CircleModule.CIRCLE: 88 return "円描画ツール";86 return _("Circle module"); 89 87 case DropperModule.DROPPER: 90 return "スポイトツール";88 return _("Dropper module"); 91 89 case FloodFillModule.FLOOD_FILL: 92 return "塗りつぶしツール";90 return _("Flood fill module"); 93 91 case FreeHandModule.FREE_HAND: 94 return "手書き(消しゴム)ツール";92 return _("Freehand (or Eraser) module"); 95 93 case LineModule.LINE: 96 return "直線ツール";94 return _("Line module"); 97 95 case PixelModule.PIXEL: 98 return "ドットツール";96 return _("Pixel module"); 99 97 default: 100 return "謎のツール";98 return _("Unknown module"); 101 99 } 102 100 } … … 197 195 } 198 196 catch (e:Error) { 199 Alert.show(e.message, ALERT_TITLE);197 Alert.show(e.message, m_title); 200 198 } 201 199 } … … 207 205 GetText.initLangFile(new XML(new languages())); 208 206 TranslatorRegistry.install(new GetTextTranslator()); 207 m_title = _("Oekakiko"); 209 208 } 210 209 … … 232 231 } 233 232 if (undoBufferSize < 0) { 234 Alert.show( "最大アンドゥ回数が少なすぎます。", ALERT_TITLE);233 Alert.show(_("Too few count of the max of undo (minimum is %s)", 0), m_title); 235 234 enabled = true; 236 235 return; 237 236 } 238 237 else if (undoBufferSize > 32) { 239 Alert.show( "最大アンドゥ回数が多すぎます。", ALERT_TITLE);238 Alert.show(_("Too many count of the max of undo (maximum is %s)", 32), m_title); 240 239 enabled = true; 241 240 return; … … 247 246 else { 248 247 if (width < MIN_CANVAS_WIDTH || height < MIN_CANVAS_HEIGHT) { 249 Alert.show( "キャンバスサイズが小さすぎます。", ALERT_TITLE);248 Alert.show(_("Too small size of the canvas (minimum is %s x %s)", MIN_CANVAS_WIDTH, MIN_CANVAS_HEIGHT), m_title); 250 249 enabled = false; 251 250 return; 252 251 } 253 252 else if (width > MAX_CANVAS_WIDTH || height > MAX_CANVAS_HEIGHT) { 254 Alert.show( "キャンバスサイズが大きすぎます。", ALERT_TITLE);253 Alert.show(_("Too big size of the canvas (maximum is %s x %s)", MAX_CANVAS_WIDTH, MAX_CANVAS_HEIGHT), m_title); 255 254 enabled = false; 256 255 return; … … 351 350 } 352 351 catch (e:Error) { 353 Alert.show( "やり直しが出来ません", ALERT_TITLE);352 Alert.show(e.message, m_title); 354 353 } 355 354 break; … … 359 358 } 360 359 catch (e:Error) { 361 Alert.show( "巻き戻しが出来ません", ALERT_TITLE);360 Alert.show(e.message, m_title); 362 361 } 363 362 break; … … 441 440 private function onExportComplete(event:Event):void 442 441 { 443 Alert.show( "PNGへの書き出しが完了しました", ALERT_TITLE);442 Alert.show(_("Exporting the bitmap of the canvas to PNG has been completed."), m_title); 444 443 } 445 444 … … 461 460 private var m_commit:uint; 462 461 private var m_windows:Vector.<IController>; 462 private var m_title:String; 463 463 464 464 private var oekakiId:uint; … … 467 467 </mx:Script> 468 468 <mx:ArrayCollection id="blendModes"> 469 <mx:Object label=" 通常" data="{BlendMode.NORMAL}" />470 <mx:Object label=" 比較(暗)" data="{BlendMode.DARKEN}" />471 <mx:Object label=" 乗算" data="{BlendMode.MULTIPLY}" />472 <mx:Object label=" 比較(明)" data="{BlendMode.LIGHTEN}" />473 <mx:Object label=" スクリーン" data="{BlendMode.SCREEN}" />474 <mx:Object label=" 覆い焼き" data="{BlendMode.ADD}" />475 <mx:Object label=" オーバーレイ" data="{BlendMode.OVERLAY}" />476 <mx:Object label=" ハードライト" data="{BlendMode.HARDLIGHT}" />477 <mx:Object label=" 差の絶対値" data="{BlendMode.DIFFERENCE}" />478 <mx:Object label=" 除外" data="{BlendMode.SUBTRACT}" />479 <mx:Object label=" 反転" data="{BlendMode.INVERT}" />469 <mx:Object label="{_('Normal')}" data="{BlendMode.NORMAL}" /> 470 <mx:Object label="{_('Darken')}" data="{BlendMode.DARKEN}" /> 471 <mx:Object label="{_('Multiply')}" data="{BlendMode.MULTIPLY}" /> 472 <mx:Object label="{_('Lighten')}" data="{BlendMode.LIGHTEN}" /> 473 <mx:Object label="{_('Screen')}" data="{BlendMode.SCREEN}" /> 474 <mx:Object label="{_('Add')}" data="{BlendMode.ADD}" /> 475 <mx:Object label="{_('Overlay')}" data="{BlendMode.OVERLAY}" /> 476 <mx:Object label="{_('Hardlight')}" data="{BlendMode.HARDLIGHT}" /> 477 <mx:Object label="{_('Difference')}" data="{BlendMode.DIFFERENCE}" /> 478 <mx:Object label="{_('Subtract')}" data="{BlendMode.SUBTRACT}" /> 479 <mx:Object label="{_('Invert')}" data="{BlendMode.INVERT}" /> 480 480 </mx:ArrayCollection> 481 481 <mx:Image source="@Embed('../assets/images/gunyara-paint_logo.png')" alpha="0.5" right="10" bottom="10" click="onClickImage()"/> 482 <ui:FormController id="formController" title=" 投稿フォーム" x="10" y="10" height="169" width="486"/>483 <ui:ToolController id="toolController" left="504" y="10" title=" 補助ツール" />484 <ui:PenController id="penController" x="10" y="223" layout="absolute" title=" ペン" height="450" />485 <ui:CanvasController id="canvasController" x="146" y="223" width="379" height="410" layout="absolute" title=" キャンバス" />486 <ui:LayerController x="533" y="223" layout="absolute" title=" レイヤー" id="layerController" height="312" />482 <ui:FormController id="formController" title="{_('Post form')}" x="10" y="10" height="169" width="486"/> 483 <ui:ToolController id="toolController" left="504" y="10" title="{_('Support tools')}" /> 484 <ui:PenController id="penController" x="10" y="223" layout="absolute" title="{_('Brushes')}" height="450" /> 485 <ui:CanvasController id="canvasController" x="146" y="223" width="379" height="410" layout="absolute" title="{_('Canvas')}" /> 486 <ui:LayerController x="533" y="223" layout="absolute" title="{_('Layers')}" id="layerController" height="312" /> 487 487 <mx:Label id="versionLabel" text="{Painter.PAINTER_VERSION_STRING}" right="10" bottom="10" alpha="0.5"/> 488 488 </mx:Application> as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/CopyrightWindow.mxml
r3758 r3759 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="340" height="268" title=" 著作権情報"2 <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="340" height="268" title="{_('The information of copyrights')}" 3 3 showCloseButton="true" close="onClose()" x="146" y="223"> 4 4 <mx:Script> as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/DataController.mxml
r3745 r3759 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="346" 3 title=" ふっかつのじゅもん" showCloseButton="true" close="onClose()" x="146" y="223">3 title="{_('The Recovery center')}" showCloseButton="true" close="onClose()" x="146" y="223"> 4 4 <mx:Script> 5 5 <![CDATA[ … … 22 22 // ※ネタです 23 23 if (password == "ザオリク" || password == "ざおりく") { 24 Alert.show( "かんちがいしています", title);24 Alert.show(_("Rejected."), title); 25 25 } 26 26 else { … … 33 33 catch (e:Error) { 34 34 trace(e.message); 35 Alert.show( "じゅもんがちがいます", title);35 Alert.show(_("Input password is incorrect."), title); 36 36 } 37 37 } … … 50 50 { 51 51 System.setClipboard(passwordTextArea.text); 52 Alert.show(" ふっかつのじゅもんをクリップボードにコピーしました", title);52 Alert.show("Copied the password to the clipboard ", title); 53 53 } 54 54 ]]> … … 61 61 </mx:states> 62 62 <mx:TextArea id="passwordTextArea" x="0" y="0" width="380" height="266" verticalScrollPolicy="on"/> 63 <mx:Button id="loadButton" x="10" y="274" label=" ふっかつする" click="onLoad()"/>64 <mx:Button id="setClipboardButton" x="124.5" y="274" label=" クリップボードにコピー" click="onClipboard()"/>65 <mx:Button id="saveButton" x="290" y="274" label=" ほぞんする" click="onSave()"/>63 <mx:Button id="loadButton" x="10" y="274" label="{_('Recover')}" click="onLoad()"/> 64 <mx:Button id="setClipboardButton" x="124.5" y="274" label="{_('Copy to the clipboard')}" click="onClipboard()"/> 65 <mx:Button id="saveButton" x="290" y="274" label="{_('Dump')}" click="onSave()"/> 66 66 </mx:TitleWindow> as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/FileController.mxml
r3743 r3759 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="200" height="150" 3 title=" ぼうけんのしょ" showCloseButton="true" close="onClose()" x="146" y="223">3 title="_('The load center')" showCloseButton="true" close="onClose()" x="146" y="223"> 4 4 <mx:Script> 5 5 <![CDATA[ … … 51 51 private function onSaveComplete(event:Event):void 52 52 { 53 Alert.show( "ほぞんせいこう", title);53 Alert.show(_("Saving data to the file has been completed."), title); 54 54 removeFileReference(); 55 55 } … … 92 92 ]]> 93 93 </mx:Script> 94 <mx:Button id="loadButton" x="57" y="25" label=" よみこむ" click="onLoad()"/>95 <mx:Button id="saveButton" x="52" y="55" label=" ほぞんする" click="onSave()"/>94 <mx:Button id="loadButton" x="57" y="25" label="_('Load')" click="onLoad()"/> 95 <mx:Button id="saveButton" x="52" y="55" label="_('Save')" click="onSave()"/> 96 96 </mx:TitleWindow> as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/FormController.mxml
r3634 r3759 42 42 private function postOekakiButtonHandler(evt:Event):void 43 43 { 44 if (titleTextInput.text == '') {45 Alert.show( '絵のタイトルが空です。', Application.application.ALERT_TITLE);44 if (titleTextInput.text == "") { 45 Alert.show(_("The title is empty."), title); 46 46 } 47 else if (messageTextArea.text == '') {48 Alert.show( '書き込みが空です。', Application.application.ALERT_TITLE);47 else if (messageTextArea.text == "") { 48 Alert.show(_("The message is empty."), title); 49 49 } 50 50 else if (Application.application.commitCount == 0) { 51 Alert.show( '絵が描かれていません。お絵かきしてください。', Application.application.ALERT_TITLE);51 Alert.show(_("The canvas is not drawn. You should draw the canvas."), title); 52 52 } 53 53 else { … … 72 72 catch (e:Error) { 73 73 Application.application.confirmUnload(true); 74 Alert.show(e.message, Application.application.ALERT_TITLE);74 Alert.show(e.message, title); 75 75 } 76 76 } … … 82 82 if (com.errStr) { 83 83 // error 84 Alert.show(com.errStr, Application.application.ALERT_TITLE);84 Alert.show(com.errStr, title); 85 85 } 86 else if (com.data.toString() != '') {87 Alert.show(com.data.toString(), Application.application.ALERT_TITLE);86 else if (com.data.toString() != "") { 87 Alert.show(com.data.toString(), title); 88 88 } 89 89 else { … … 94 94 } 95 95 catch (e:Error) { 96 Alert.show( '何かしらのエラーが起きました…再投稿お願いいたします。', Application.application.ALERT_TITLE);96 Alert.show(_("Failed your post for something wrong. Post again."), title); 97 97 } 98 98 Application.application.confirmUnload(true); … … 118 118 var info:Object = com.jsonObject; 119 119 if (!info) { 120 info = {'width': baseImg.width, 'height': baseImg.height}; 120 info = { 121 "width": baseImg.width, 122 "height": baseImg.height 123 }; 121 124 } 122 125 //baseImgToCanvas(info['width'], info['height'], parameters['undoBufferSize'], info); … … 136 139 ]]> 137 140 </mx:Script> 138 <mx:Label x="12" y="7" text=" 投稿者名"/>141 <mx:Label x="12" y="7" text="{_('Name')}"/> 139 142 <mx:TextInput id="fromTextInput" x="55" y="3" maxChars="32" fontSize="14" focusThickness="0"/> 140 <mx:Label x="2" y="36" text=" 絵のタイトル"/>143 <mx:Label x="2" y="36" text="{_('Title')}"/> 141 144 <mx:TextInput id="titleTextInput" x="55" y="32" maxChars="32" fontSize="14" focusThickness="0" width="406"/> 142 <mx:CheckBox id="watchlistCheckBox" x="223" y="7" label=" ウォッチリストに登録"/>143 <mx:Label x="10" y="76" text=" 書き込み"/>145 <mx:CheckBox id="watchlistCheckBox" x="223" y="7" label="{_('Add this to my Watchlist')}"/> 146 <mx:Label x="10" y="76" text="{_('Message')}"/> 144 147 <mx:TextArea id="messageTextArea" x="55" y="61" width="406" height="61" fontSize="14" focusThickness="0"> 145 148 <mx:text></mx:text> 146 149 </mx:TextArea> 147 <mx:Button id="postOekakiButton" x="353" y="7" label=" お絵カキコする!" fillAlphas="[1.0, 1.0, 1.0, 1.0]" fillColors="[#FFFFFF, #FF9999, #FFFFFF, #FFCCCC]" enabled="false" buttonDown="postOekakiButtonHandler(event)"/>150 <mx:Button id="postOekakiButton" x="353" y="7" label="{_('Post!')}" fillAlphas="[1.0, 1.0, 1.0, 1.0]" fillColors="[#FFFFFF, #FF9999, #FFFFFF, #FFCCCC]" enabled="false" buttonDown="postOekakiButtonHandler(event)"/> 148 151 </mx:TitleWindow> as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/LayerController.mxml
r3743 r3759 20 20 import org.libspark.gunyarapaint.framework.ui.IApplication; 21 21 import org.libspark.gunyarapaint.utils.ComponentResizer; 22 23 private static const NAME:String = "レイヤーツール";24 22 25 23 public function init(app:IApplication):void … … 92 90 { 93 91 try { 94 // AddLayerErrorを捉える必要がある92 // should catch AddLayerError here 95 93 var app:IApplication = IApplication(Application.application); 96 94 app.canvasModule.createLayer(); 97 95 update(); 98 96 } catch (e:Error) { 99 Alert.show(e.message, NAME);97 Alert.show(e.message, title); 100 98 } 101 99 } … … 104 102 { 105 103 try { 106 // AddLayerErrorを捉える必要がある104 // should catch AddLayerError here 107 105 var app:IApplication = IApplication(Application.application); 108 106 app.canvasModule.copyLayer(); 109 107 update(); 110 108 } catch (e:Error) { 111 Alert.show(e.message, NAME);109 Alert.show(e.message, title); 112 110 } 113 111 } … … 116 114 { 117 115 try { 118 // RemoveLayerErrorを捉える必要がある116 // should catch RemoveLayerError here 119 117 var app:IApplication = IApplication(Application.application); 120 118 app.canvasModule.removeLayer(); 121 119 update(); 122 120 } catch (e:Error) { 123 Alert.show(e.message, NAME);121 Alert.show(e.message, title); 124 122 } 125 123 } … … 128 126 { 129 127 try { 130 // MergeLayersErrorを捉える必要がある128 // should catch MergeLayersError here 131 129 var app:IApplication = IApplication(Application.application); 132 130 app.canvasModule.mergeLayers(); 133 131 update(); 134 132 } catch (e:Error) { 135 Alert.show(e.message, NAME);133 Alert.show(e.message, title); 136 134 } 137 135 } … … 181 179 itemClick="onClickLayer(event)" dragComplete="onDragComplete(event)" selectedIndex="0"> 182 180 <ui:columns> 183 <mx:DataGridColumn editable="false" headerText=" 目" dataField="visible" itemRenderer="org.libspark.gunyarapaint.ui.v1.CheckBoxEditor" rendererIsEditor="true" width="20"/>184 <mx:DataGridColumn editable="false" headerText=" ロ" dataField="locked" itemRenderer="org.libspark.gunyarapaint.ui.v1.CheckBoxEditor" rendererIsEditor="true" width="20"/>185 <!--mx:DataGridColumn headerText=" マ" dataField="maskCheck" itemRenderer="org.libspark.gunyarapaint.controls.CheckBoxEditor" rendererIsEditor="true" width="20"/-->186 <mx:DataGridColumn editable="true" headerText=" レイヤ名" dataField="name"/>181 <mx:DataGridColumn editable="false" headerText="{_('The layer is visible')}" dataField="visible" itemRenderer="org.libspark.gunyarapaint.ui.v1.CheckBoxEditor" rendererIsEditor="true" width="20"/> 182 <mx:DataGridColumn editable="false" headerText="{_('The layer is locked')}" dataField="locked" itemRenderer="org.libspark.gunyarapaint.ui.v1.CheckBoxEditor" rendererIsEditor="true" width="20"/> 183 <!--mx:DataGridColumn headerText="{_('Mask the layer')}" dataField="maskCheck" itemRenderer="org.libspark.gunyarapaint.controls.CheckBoxEditor" rendererIsEditor="true" width="20"/--> 184 <mx:DataGridColumn editable="true" headerText="{_('The layer name')}" dataField="name"/> 187 185 </ui:columns> 188 186 </ui:ExtendedDataGrid> 189 <mx:Button x="6" y="246" id="newLayerButton" label=" 新" width="22" paddingLeft="0" paddingRight="0" buttonDown="onCreateLayer(event)"/>190 <mx:Button x="36" y="246" id="copyLayerButton" label=" 複" width="22" paddingLeft="0" paddingRight="0" buttonDown="onCopyLayer(event)"/>191 <mx:Button x="66" y="246" id="deleteLayerButton" label=" 削" width="22" paddingLeft="0" paddingRight="0" buttonDown="onRemoveLayer(event)"/>192 <mx:Button x="96" y="246" id="mergeLayerButton" label=" 統" width="22" paddingLeft="0" paddingRight="0" buttonDown="onMergeLayers(event)"/>187 <mx:Button x="6" y="246" id="newLayerButton" label="{_('Create a new layer')}" width="22" paddingLeft="0" paddingRight="0" buttonDown="onCreateLayer(event)"/> 188 <mx:Button x="36" y="246" id="copyLayerButton" label="{_('Copy the layer')}" width="22" paddingLeft="0" paddingRight="0" buttonDown="onCopyLayer(event)"/> 189 <mx:Button x="66" y="246" id="deleteLayerButton" label="{_('Delete the layer')}" width="22" paddingLeft="0" paddingRight="0" buttonDown="onRemoveLayer(event)"/> 190 <mx:Button x="96" y="246" id="mergeLayerButton" label="{_('Merge the layer')}" width="22" paddingLeft="0" paddingRight="0" buttonDown="onMergeLayers(event)"/> 193 191 <mx:ComboBox id="blendModeComboBox" x="0" y="0" width="124" change="onSelectBlendMode(event)"></mx:ComboBox> 194 <mx:Label x="5" y="23" text=" 透"/>192 <mx:Label x="5" y="23" text="{_('Transparency of the layer')}"/> 195 193 <mx:HSlider id="alphaSlider" x="18" y="20" width="99" minimum="0.05" maximum="1" snapInterval="0.05" value="1" change="onChangeAlphaSlider(event)"/> 196 194 </mx:TitleWindow> as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/PenController.mxml
r3634 r3759 200 200 var picker:SColorPicker = new SColorPicker(); 201 201 picker.selectedColor = m_palette.getStyle('backgroundColor'); 202 picker.title = "パレットに入れる色を選んでください。";202 picker.title = _("Select color to the palette"); 203 203 204 204 // display the 'x' close button … … 420 420 421 421 <!-- preview --> 422 <mx:Label x="3" y="10" text=" ペンの状態" width="53.5"/>422 <mx:Label x="3" y="10" text="{_('State of the pen')}" width="53.5"/> 423 423 <mx:Canvas x="64.5" y="1" width="30" height="30" id="previewCanvas" borderStyle="solid" borderThickness="1" borderColor="#000000"> 424 424 </mx:Canvas> 425 425 426 426 <!-- thickness --> 427 <mx:Label x="3" y="28" text=" 太"/>427 <mx:Label x="3" y="28" text="{_('Thickness')}"/> 428 428 <mx:HSlider x="16" y="28" width="87" minimum="1" maximum="30" snapInterval="1" height="12" value="3" id="thicknessSlider" change="currentThickness = event.value"/> 429 <mx:Button x="2" y="47" label=" 極" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton1" click="currentThickness = 1"/>430 <mx:Button x="23" y="47" label=" 細" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton2" click="currentThickness = 3"/>431 <mx:Button x="44" y="47" label=" 中" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton3" click="currentThickness = 10"/>432 <mx:Button x="65" y="47" label=" 太" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton4" click="currentThickness = 20"/>433 <mx:Button x="86" y="47" label=" 極" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton5" click="currentThickness = 30"/>429 <mx:Button x="2" y="47" label="{_('Very Thin')}" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton1" click="currentThickness = 1"/> 430 <mx:Button x="23" y="47" label="{_('Thin')}" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton2" click="currentThickness = 3"/> 431 <mx:Button x="44" y="47" label="{_('Middle')}" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton3" click="currentThickness = 10"/> 432 <mx:Button x="65" y="47" label="{_('Bold')}" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton4" click="currentThickness = 20"/> 433 <mx:Button x="86" y="47" label="{_('Very Bold')}" width="20" paddingLeft="0" paddingRight="0" id="thicknessButton5" click="currentThickness = 30"/> 434 434 435 435 <!-- color palette --> … … 494 494 495 495 <!-- tools --> 496 <mx:Button id="colorPickerButton" x="21.5" y="235" label=" 色選択画面" width="65" paddingLeft="0" paddingRight="0" buttonDown="onClickColorPicker(event)"/>496 <mx:Button id="colorPickerButton" x="21.5" y="235" label="{_('Select color')}" width="65" paddingLeft="0" paddingRight="0" buttonDown="onClickColorPicker(event)"/> 497 497 <mx:Button id="dropperButton" x="5" y="260" toggle="true" icon="{Application.application.dropperIcon}" width="22" paddingLeft="0" paddingRight="0" change="onSelectDropper(event)"/> 498 498 <mx:Button id="handtoolButton" x="31" y="260" toggle="true" icon="{Application.application.handOpenIcon}" width="22" paddingLeft="0" paddingRight="0" change="onSelectHandTool(event)"/> 499 <mx:Button id="eraserButton" x="56" y="260" toggle="true" label=" 消" width="22" paddingLeft="0" paddingRight="0" change="onSelectEraser(event)"/>500 <mx:Button id="dotButton" x="81" y="260" toggle="true" label=" ド" width="22" paddingLeft="0" paddingRight="0" change="onSelectDot(event)"/>499 <mx:Button id="eraserButton" x="56" y="260" toggle="true" label="{_('Eraser brush')}" width="22" paddingLeft="0" paddingRight="0" change="onSelectEraser(event)"/> 500 <mx:Button id="dotButton" x="81" y="260" toggle="true" label="{_('Pixel brush')}" width="22" paddingLeft="0" paddingRight="0" change="onSelectDot(event)"/> 501 501 502 502 <!-- alpha --> 503 <mx:Label x="3" y="285" text=" 透"/>503 <mx:Label x="3" y="285" text="{_('The transparency of the brush')}"/> 504 504 <mx:Label x="1" y="295" text="{alphaSlider.value}" width="28" enabled="false" fontSize="8"/> 505 505 <mx:HSlider id ="alphaSlider" x="20" y="282" width="87" minimum="0.05" maximum="1" snapInterval="0.05" value="1" change="currentAlpha = event.value"/> … … 519 519 <mx:ComboBox id="penModeComboBox" x="6" y="356" width="96" change="onSelectPen(event)"> 520 520 <mx:ArrayCollection> 521 <mx:Object label=" 手書き" data="{FreeHandModule.FREE_HAND}" />522 <mx:Object label=" 直線" data="{LineModule.LINE}" />523 <mx:Object label=" 円" data="{CircleModule.CIRCLE}" />524 <mx:Object label=" ペイント" data="{FloodFillModule.FLOOD_FILL}" />525 <mx:Object label=" 透明ペイント" data="{TransparentFloodFill.TRANSPARENT_FLOOD_FILL}" />521 <mx:Object label="{_('Free hand')}" data="{FreeHandModule.FREE_HAND}" /> 522 <mx:Object label="{_('Line')}" data="{LineModule.LINE}" /> 523 <mx:Object label="{_('Circle')}" data="{CircleModule.CIRCLE}" /> 524 <mx:Object label="{_('Flood fill')]" data="{FloodFillModule.FLOOD_FILL}" /> 525 <mx:Object label="{_('Flood fill with transparent')}" data="{TransparentFloodFill.TRANSPARENT_FLOOD_FILL}" /> 526 526 <!-- 527 <mx:Object label=" スポイト" data="" />528 <mx:Object label=" 四角" data="" />529 <mx:Object label=" 楕円" data="" />530 <mx:Object label=" 角丸四角" data="" />527 <mx:Object label="{_('Dropper')}" data="" /> 528 <mx:Object label="{_('Square')}" data="" /> 529 <mx:Object label="{_('Ellipse')}" data="" /> 530 <mx:Object label="{_('Rounded square')}" data="" /> 531 531 --> 532 532 </mx:ArrayCollection> as3/gunyarapaint/branches/gunyarapaint/compat/src/org/libspark/gunyarapaint/ui/v1/ToolController.mxml
r3743 r3759 76 76 var undoStack:UndoStack = UndoStack(event.target); 77 77 var undoCount:int = undoStack.undoCount; 78 undoButton.label = 'アンドゥ ';78 undoButton.label = _("Undo count"); 79 79 if (undoCount > 0) { 80 80 undoButton.label += '(' + undoCount + ')'; … … 85 85 } 86 86 var redoCount:int = undoStack.redoCount; 87 redoButton.label = 'リドゥ ';87 redoButton.label = _("Redo count"); 88 88 if (redoCount > 0) { 89 89 redoButton.label += '(' + redoCount + ')'; … … 159 159 </mx:Script> 160 160 <mx:Canvas x="10" y="0" height="163" width="260"> 161 <mx:Button id="rotateResetButton" y="63" label=" 角度" width="29" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" right="204" buttonDown="setRotate(0)"/>162 <mx:Button id="zoomResetButton" y="81" label=" 拡大" width="29" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" right="204" buttonDown="setZoom(1)"/>161 <mx:Button id="rotateResetButton" y="63" label="{_('Canvas Rotation')}" width="29" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" right="204" buttonDown="setRotate(0)"/> 162 <mx:Button id="zoomResetButton" y="81" label="{_('Canvas Zoom')}" width="29" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" right="204" buttonDown="setZoom(1)"/> 163 163 <mx:HSlider id="canvasRotate" y="62" width="152" minimum="-180" maximum="180" snapInterval="5" value="0" right="49" showDataTip="false" change="setRotate(event.value)" thumbDrag="setRotate(event.value)"/> 164 164 <mx:HSlider id="canvasZoom" y="79" width="152" minimum="-4" maximum="32" snapInterval="0.5" value="1" right="49" showDataTip="false" change="setZoom(event.value)" thumbDrag="setZoom(event.value)"/> … … 167 167 <mx:TextInput id="canvasZoomValue" y="83" width="32" height="17" right="18" fontSize="8" textAlign="right" text="100" restrict="0-9" maxChars="6" enter="onChangeCanvasZoom(event)"/> 168 168 <mx:Label y="83" text="%" right="0"/> 169 <mx:Label y="4" text=" 補助線" right="199"/>169 <mx:Label y="4" text="{_('Auxiliary Lines')}" right="199"/> 170 170 <mx:NumericStepper id="additionalNumberStepper" y="4" value="4" minimum="2" maximum="16" stepSize="1" right="143" height="18" fontSize="8" change="onChangeAuxDivideCount(event)"/> 171 <mx:CheckBox id="additionalBoxCheckBox" y="2" label="縦横" right="8" fontSize="9" height="18" change="onChangeAuxBoxVisible(event)"/> 172 <mx:CheckBox id="additionalSkewCheckBox" y="18" label="斜め" right="9" fontSize="9" height="18" change="onChangeAuxSkewVisible(event)"/> 173 <mx:Button id="undoButton" y="38" label="アンドゥ" enabled="false" paddingLeft="3" paddingRight="3" right="89" buttonDown="IApplication(Application.application).canvasModule.undo()"/> 174 <mx:Button id="redoButton" y="38" label="リドゥ" enabled="false" paddingLeft="3" paddingRight="3" right="12" buttonDown="IApplication(Application.application).canvasModule.redo()"/> 175 <mx:Button id="logPlayButton" y="105" label="ログプレイ" visible="false" right="99"/> 176 <mx:Button id="checkPngButton" y="105" label="同一check" visible="false" right="10"/> 171 <mx:CheckBox id="additionalBoxCheckBox" y="2" label="{_('Auxiliary box')}" right="8" fontSize="9" height="18" change="onChangeAuxBoxVisible(event)"/> 172 <mx:CheckBox id="additionalSkewCheckBox" y="18" label="{_('Auxiliary skew')}" right="9" fontSize="9" height="18" change="onChangeAuxSkewVisible(event)"/> 173 <mx:Button id="undoButton" y="38" label="{_('Undo')}" enabled="false" paddingLeft="3" paddingRight="3" right="89" buttonDown="IApplication(Application.application).canvasModule.undo()"/> 174 <mx:Button id="redoButton" y="38" label="{_('Redo')}" enabled="false" paddingLeft="3" paddingRight="3" right="12" buttonDown="IApplication(Application.application).canvasModule.redo()"/> 177 175 <mx:ComboBox y="4" id="additionalTypeComboBox" right="66" width="70" fontSize="8" height="18" selectedIndex="0" change="onChangeAuxType(event)"> 178 176 <mx:ArrayCollection id="auxTypes"> 179 <mx:Object label=" 分割" data="0" />180 <mx:Object label=" px単位" data="1" />177 <mx:Object label="{_('Divided by lines')}" data="0" /> 178 <mx:Object label="{_('Divided by pixels')}" data="1" /> 181 179 </mx:ArrayCollection> 182 180 </mx:ComboBox> 183 <mx:Button id="windowsResetButton" x="146" y="136" label=" ウィンドウ初期状態" width="104" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="Application.application.resetWindowsPosition()"/>184 <mx:Button id="horizontalMirrorButton" x="10" y="111" label=" 全レイヤー左右反転" width="120" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="IApplication(Application.application).canvasModule.horizontalMirror(Painter.ALL_LAYERS)"/>185 <mx:Button id="verticalMirrorButton" x="10" y="136" label=" 全レイヤー上下反転" width="120" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="IApplication(Application.application).canvasModule.verticalMirror(Painter.ALL_LAYERS)"/>186 <mx:Button id="passwordButton" x="146" y="111" label=" ぼうけんのしょ" width="104" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="onLoad(event)"/>181 <mx:Button id="windowsResetButton" x="146" y="136" label="{_('Reset all windows position')}" width="104" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="Application.application.resetWindowsPosition()"/> 182 <mx:Button id="horizontalMirrorButton" x="10" y="111" label="{_('Mirror horizontally to all layers')}" width="120" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="IApplication(Application.application).canvasModule.horizontalMirror(Painter.ALL_LAYERS)"/> 183 <mx:Button id="verticalMirrorButton" x="10" y="136" label="{_('Mirror vertically to all layers')}" width="120" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="IApplication(Application.application).canvasModule.verticalMirror(Painter.ALL_LAYERS)"/> 184 <mx:Button id="passwordButton" x="146" y="111" label="{_('Recovery center')}" width="104" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" height="17" buttonDown="onLoad(event)"/> 187 185 </mx:Canvas> 188 186 </mx:TitleWindow>

