This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 584
Adding Translation to template (WIP) #112
Closed
Closed
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3ee71db
Added translation file
tony199555 124e678
Update composer.json to include smarty-gettext
tony199555 e9351d0
Finish preparing pot file
tony199555 bb6e280
Setup accoring standard
tony199555 404935b
Possible fix recommend by Rudloff
tony199555 1e1b97c
Name Correction
tony199555 508c32e
Use correct local code
tony199555 e8d989a
Fix syntax by styleci
tony199555 b4dc208
Update composer.lock
tony199555 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
msgid "" | ||
msgstr "Content-Type: text/plain; charset=UTF-8\n" | ||
|
||
#: ..\..\..\templates/error.tpl:5 | ||
msgid "An error occured" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/error.tpl:6 | ||
msgid "Please check the URL of your video." | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/extractors.tpl:4 | ||
msgid "Supported websites" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:4 | ||
msgid "Code by" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:6 | ||
msgid "Design by" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:12 | ||
msgid "AllTube Download on Facebook" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:12 | ||
msgid "Like us on Facebook" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:14 | ||
msgid "Get the code" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:16 | ||
msgid "Based on" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/header.tpl:4 | ||
msgid "Share on Twitter" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/inc/header.tpl:5 | ||
msgid "Share on Facebook" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/index.tpl:9 | ||
msgid "Copy here the URL of your video (Youtube, Dailymotion, etc.)" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/index.tpl:19 ..\..\..\templates/password.tpl:10 | ||
#: ..\..\..\templates/playlist.tpl:23 ..\..\..\templates/video.tpl:85 | ||
#: ..\..\..\templates/video.tpl:90 | ||
msgid "Download" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/index.tpl:24 | ||
msgid "Audio only (MP3)" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/index.tpl:29 | ||
msgid "See all supported websites" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/index.tpl:31 | ||
msgid "Drag this to your bookmarks bar:" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/index.tpl:32 | ||
msgid "Bookmarklet" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/password.tpl:5 | ||
msgid "This video is protected" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/password.tpl:6 | ||
msgid "You need a password in order to download this video." | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/password.tpl:8 | ||
msgid "Video password" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/playlist.tpl:5 | ||
msgid "Videos extracted from the" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/playlist.tpl:7 | ||
msgid "playlist:" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/playlist.tpl:24 | ||
msgid "More options" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/video.tpl:6 | ||
msgid "You are going to download" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/video.tpl:24 | ||
msgid "Available formats:" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/video.tpl:31 | ||
msgid "Generic formats" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/video.tpl:34 | ||
msgid "Best" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/video.tpl:39 | ||
msgid "Remux best video with best audio" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/video.tpl:43 | ||
msgid "Worst" | ||
msgstr "" | ||
|
||
#: ..\..\..\templates/video.tpl:46 | ||
msgid "Detailed formats" | ||
msgstr "" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
msgid "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the gettext domain you are using is |
||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"POT-Creation-Date: \n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: Shiqiang Yu <[email protected]>\n" | ||
"Language-Team: \n" | ||
"Language: zh_CN\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 2.0.2\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
|
||
#: ..\..\..\templates/error.tpl:5 | ||
msgid "An error occured" | ||
msgstr "出错了" | ||
|
||
#: ..\..\..\templates/error.tpl:6 | ||
msgid "Please check the URL of your video." | ||
msgstr "请检查您的视频的 URL。" | ||
|
||
#: ..\..\..\templates/extractors.tpl:4 | ||
msgid "Supported websites" | ||
msgstr "支持的网站" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:4 | ||
msgid "Code by" | ||
msgstr "代码来自" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:6 | ||
msgid "Design by" | ||
msgstr "设计来自" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:12 | ||
msgid "AllTube Download on Facebook" | ||
msgstr "去Alltube Download的Facebook页面" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:12 | ||
msgid "Like us on Facebook" | ||
msgstr "在Facebook关注我们" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:14 | ||
msgid "Get the code" | ||
msgstr "获取代码" | ||
|
||
#: ..\..\..\templates/inc/footer.tpl:16 | ||
msgid "Based on" | ||
msgstr "基于" | ||
|
||
#: ..\..\..\templates/inc/header.tpl:4 | ||
msgid "Share on Twitter" | ||
msgstr "分享到 Twitter" | ||
|
||
#: ..\..\..\templates/inc/header.tpl:5 | ||
msgid "Share on Facebook" | ||
msgstr "分享到 Facebook" | ||
|
||
#: ..\..\..\templates/index.tpl:9 | ||
msgid "Copy here the URL of your video (Youtube, Dailymotion, etc.)" | ||
msgstr "在这里复制您的视频 (Youtube、 Dailymotion 等) 的 URL" | ||
|
||
#: ..\..\..\templates/index.tpl:19 ..\..\..\templates/password.tpl:10 | ||
#: ..\..\..\templates/playlist.tpl:23 ..\..\..\templates/video.tpl:85 | ||
#: ..\..\..\templates/video.tpl:90 | ||
msgid "Download" | ||
msgstr "下载" | ||
|
||
#: ..\..\..\templates/index.tpl:24 | ||
msgid "Audio only (MP3)" | ||
msgstr "仅限音频(mp3)" | ||
|
||
#: ..\..\..\templates/index.tpl:29 | ||
msgid "See all supported websites" | ||
msgstr "请参阅支持的所有网站" | ||
|
||
#: ..\..\..\templates/index.tpl:31 | ||
msgid "Drag this to your bookmarks bar:" | ||
msgstr "把这个拖到你的书签:" | ||
|
||
#: ..\..\..\templates/index.tpl:32 | ||
msgid "Bookmarklet" | ||
msgstr "书签工具" | ||
|
||
#: ..\..\..\templates/password.tpl:5 | ||
msgid "This video is protected" | ||
msgstr "这个视频受保护" | ||
|
||
#: ..\..\..\templates/password.tpl:6 | ||
msgid "You need a password in order to download this video." | ||
msgstr "你需要密码才能下载这个视频。" | ||
|
||
#: ..\..\..\templates/password.tpl:8 | ||
msgid "Video password" | ||
msgstr "视频密码" | ||
|
||
#: ..\..\..\templates/playlist.tpl:5 | ||
msgid "Videos extracted from the" | ||
msgstr "视频从" | ||
|
||
#: ..\..\..\templates/playlist.tpl:7 | ||
msgid "playlist:" | ||
msgstr "播放列表提取:" | ||
|
||
#: ..\..\..\templates/playlist.tpl:24 | ||
msgid "More options" | ||
msgstr "更多选项" | ||
|
||
#: ..\..\..\templates/video.tpl:6 | ||
msgid "You are going to download" | ||
msgstr "你即将下载" | ||
|
||
#: ..\..\..\templates/video.tpl:24 | ||
msgid "Available formats:" | ||
msgstr "可用的格式︰" | ||
|
||
#: ..\..\..\templates/video.tpl:31 | ||
msgid "Generic formats" | ||
msgstr "通用格式" | ||
|
||
#: ..\..\..\templates/video.tpl:34 | ||
msgid "Best" | ||
msgstr "最佳" | ||
|
||
#: ..\..\..\templates/video.tpl:39 | ||
msgid "Remux best video with best audio" | ||
msgstr "重新封装最佳视频与最佳音频" | ||
|
||
#: ..\..\..\templates/video.tpl:43 | ||
msgid "Worst" | ||
msgstr "最差" | ||
|
||
#: ..\..\..\templates/video.tpl:46 | ||
msgid "Detailed formats" | ||
msgstr "详细格式" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{locale path="Translations" domain="Alltube"} | ||
<!Doctype HTML> | ||
<html lang="en"> | ||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<header> | ||
<div class="social"> | ||
<a class="twitter" href="http://twitter.com/home?status={base_url|urlencode}" target="_blank"> | ||
Share on Twitter<div class="twittermask"></div></a> | ||
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u={base_url|urlencode}" target="_blank">Share on Facebook<div class="facebookmask"></div></a> | ||
{t}Share on Twitter{/t}<div class="twittermask"></div></a> | ||
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u={base_url|urlencode}" target="_blank">{t}Share on Facebook{/t}<div class="facebookmask"></div></a> | ||
</div> | ||
</header> | ||
<div class="wrapper"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On some systems, the locale is called
zh_CN.utf8
, so you should do something like this:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not able to get the result even changing the setlocale to utf8, which I am really have no idea why. Do you have a sample site that you have done successfully? Also if you don't mind can you push the change to a different branch so I can look at it.