Skip to content

Commit

Permalink
misc: translation and fix wrong time format for some Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Oct 12, 2013
1 parent a3722e9 commit afefdbb
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 40 deletions.
8 changes: 4 additions & 4 deletions examples/player/StatisticsView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 61,8 @@ QList<QVariant> getVideoInfoValues(const Statistics& s) {
return QList<QVariant>()
<< s.video.available
<< s.video.codec " (" s.video.codec_long ")"
<< s.video.total_time
<< s.video.start_time
<< s.video.total_time.toString("hh:mm:ss")
<< s.video.start_time.toString("hh:mm:ss")
<< s.video.fps_guess
<< s.video.avg_frame_rate
<< QString::number(s.video.bit_rate/1000) " Kb/s"
Expand All @@ -77,8 77,8 @@ QList<QVariant> getAudioInfoValues(const Statistics& s) {
return QList<QVariant>()
<< s.audio.available
<< s.audio.codec " (" s.audio.codec_long ")"
<< s.audio.total_time
<< s.audio.start_time
<< s.audio.total_time.toString("hh:mm:ss")
<< s.audio.start_time.toString("hh:mm:ss")
<< s.audio.fps_guess
<< s.audio.avg_frame_rate
<< QString::number(s.audio.bit_rate/1000) " Kb/s"
Expand Down
Binary file modified examples/player/res/player_zh_CN.qm
Binary file not shown.
77 changes: 41 additions & 36 deletions examples/player/res/player_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,178 4,183 @@
<context>
<name>MainWindow</name>
<message>
<location filename="../MainWindow.cpp" line="72"/>
<location filename="../MainWindow.cpp" line="73"/>
<source>Click black area to use shortcut(see right click menu)</source>
<translation>点击黑色区域以使用快捷键(见右键菜单)</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="128"/>
<location filename="../MainWindow.cpp" line="129"/>
<source>Current time</source>
<translation>播放时间</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="132"/>
<location filename="../MainWindow.cpp" line="133"/>
<source>Duration</source>
<translation>视频时长</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="136"/>
<location filename="../MainWindow.cpp" line="137"/>
<source>Render engine</source>
<translation>渲染引擎</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="141"/>
<location filename="../MainWindow.cpp" line="142"/>
<source>Speed. Ctrl Up/Down</source>
<translation>速度. Ctrl 上/下</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="169"/>
<location filename="../MainWindow.cpp" line="170"/>
<source>Open</source>
<translation>打开</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="183"/>
<location filename="../MainWindow.cpp" line="184"/>
<source>Capture video frame</source>
<translation>视频截图</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="183"/>
<location filename="../MainWindow.cpp" line="184"/>
<source>Save to</source>
<translation>保存至</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="210"/>
<location filename="../MainWindow.cpp" line="211"/>
<source>Open Url</source>
<translation>打开 Url</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="211"/>
<location filename="../MainWindow.cpp" line="212"/>
<source>Online channels</source>
<translation>在线频道</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="239"/>
<location filename="../MainWindow.cpp" line="240"/>
<source>Setup</source>
<translation>设置</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="240"/>
<location filename="../MainWindow.cpp" line="241"/>
<source>Report</source>
<translation>反馈</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="241"/>
<location filename="../MainWindow.cpp" line="242"/>
<source>About</source>
<translation>关于</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="242"/>
<location filename="../MainWindow.cpp" line="243"/>
<source>Help</source>
<translation>帮助</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="244"/>
<location filename="../MainWindow.cpp" line="245"/>
<source>About Qt</source>
<translation>关于 Qt</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="248"/>
<location filename="../MainWindow.cpp" line="249"/>
<source>Speed</source>
<translation>速度</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="259"/>
<location filename="../MainWindow.cpp" line="260"/>
<source>Repeat</source>
<translation>重复</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="263"/>
<location filename="../MainWindow.cpp" line="264"/>
<source>No</source>
<translation>否</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="265"/>
<location filename="../MainWindow.cpp" line="266"/>
<source>Single</source>
<translation>单个</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="266"/>
<location filename="../MainWindow.cpp" line="267"/>
<source>All</source>
<translation>所有</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="272"/>
<location filename="../MainWindow.cpp" line="699"/>
<location filename="../MainWindow.cpp" line="273"/>
<location filename="../MainWindow.cpp" line="761"/>
<source>Aspect ratio</source>
<translation>比例</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="275"/>
<location filename="../MainWindow.cpp" line="276"/>
<source>Video</source>
<translation>视频</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="277"/>
<location filename="../MainWindow.cpp" line="278"/>
<source>Window</source>
<translation>窗口</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="280"/>
<location filename="../MainWindow.cpp" line="281"/>
<source>Custom</source>
<translation>自定义</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="286"/>
<location filename="../MainWindow.cpp" line="287"/>
<source>Audio track</source>
<translation>音轨</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="291"/>
<source>Channel</source>
<translation>声道</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="289"/>
<location filename="../MainWindow.cpp" line="294"/>
<source>As input</source>
<translation>同输入</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="291"/>
<location filename="../MainWindow.cpp" line="296"/>
<source>Stero</source>
<translation>立体声</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="292"/>
<location filename="../MainWindow.cpp" line="297"/>
<source>Mono (center)</source>
<translation>单声道 (中央)</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="293"/>
<location filename="../MainWindow.cpp" line="298"/>
<source>Left</source>
<translation>左声道</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="294"/>
<location filename="../MainWindow.cpp" line="299"/>
<source>Right</source>
<translation>右声道</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="300"/>
<location filename="../MainWindow.cpp" line="305"/>
<source>Renderer</source>
<translation>渲染引擎</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="402"/>
<location filename="../MainWindow.cpp" line="424"/>
<source>not availabe on your platform!</source>
<translation>你的平台上不可使用!</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="502"/>
<location filename="../MainWindow.cpp" line="530"/>
<source>Open a media file</source>
<translation>打开媒体文件</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="680"/>
<location filename="../MainWindow.cpp" line="709"/>
<source>Open an url</source>
<translation>打开 url</translation>
</message>
<message>
<location filename="../MainWindow.cpp" line="680"/>
<location filename="../MainWindow.cpp" line="709"/>
<source>Url</source>
<translation></translation>
</message>
Expand Down

0 comments on commit afefdbb

Please sign in to comment.