Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arabic translating file #137

Open
wants to merge 44 commits into
base: lang-deploy
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e2fa0ec
added purecss.io to frameworks
gresakg Mar 4, 2015
7ef9ad1
Merge pull request #119 from gresakg/master
Mar 4, 2015
55a177a
Merge pull request #118 from incompl/lang-deploy
Mar 4, 2015
29c1588
Update Bocoup ad zone id
ajpiano Mar 17, 2015
7586a87
Merge pull request #120 from ajpiano/fix-zone-id
Mar 17, 2015
73f4578
add ftp-deploy to dependencies
Mar 17, 2015
033740e
add grunt-ftp-deploy to dependencies
Mar 17, 2015
dfde762
Translated word 'Errors'
royopa Jul 9, 2015
755abc0
Merge pull request #121 from royopa/patch-1
Jul 9, 2015
9ad87ff
fixes #122
incompl Aug 20, 2015
1ff1f34
Being kinder to math
incompl Nov 23, 2015
7832e0f
Being kinder to math
incompl Nov 23, 2015
6baeffa
Update to work with latest jekyll + pygments
incompl Nov 24, 2015
7ae7169
fix textile sub-bullets
incompl Nov 24, 2015
1518f01
Fixed typo
cakecatz Apr 13, 2016
00e8fe4
Merge pull request #126 from cakecatz/master
incompl Apr 18, 2016
185ee71
Fix spanish traslations
Apr 19, 2016
1f1fa61
Merge pull request #127 from KarloxMartinez/master
incompl May 1, 2016
d0ee22d
// fix a chinese translation problem
benniks May 11, 2016
82c67de
Merge pull request #4 from Benniks/master
zmmbreeze May 11, 2016
693a2db
Merge pull request #129 from zmmbreeze/master
incompl May 16, 2016
6f926b8
fix typo
isdh Jun 28, 2016
520a9df
Merge pull request #131 from isdh/master
incompl Jul 2, 2016
d3c8bb8
Fix italian typo
NKjoep Sep 14, 2016
d53d895
Merge pull request #132 from NKjoep/ita-fix-typo
incompl Sep 20, 2016
d9c797e
Fix typo
sanspace Oct 2, 2016
27aa986
Merge pull request #133 from sanspace/patch-1
incompl Oct 10, 2016
91ec42a
Local changes
Nov 20, 2016
ec4ad36
modified some CHS translation
edwardwang0302 Nov 28, 2016
4ae548a
Fixed some typos in Spanish translation
PabloCastellano Dec 6, 2016
d3f6a6a
Merge pull request #138 from PabloCastellano/master
incompl Dec 8, 2016
3392add
Merge pull request #135 from Wachisu/nl-changes
incompl Dec 8, 2016
0166f17
Merge pull request #136 from edwardwang0302/CHS_Modification
incompl Dec 8, 2016
8b87261
arabic
incompl Mar 24, 2017
3bc90ef
work on ar
incompl Mar 28, 2017
6461575
ar3
incompl Apr 2, 2017
6f946f3
ar-translator
incompl Apr 6, 2017
4d1bf58
remove dead frameworks
incompl Jun 19, 2017
b57d0ae
Update README.textile
incompl Mar 7, 2018
d1dc6cc
Update README.textile
incompl Mar 7, 2018
49fa843
Remove "screen and" from media query examples
jonathanberger Jun 27, 2019
8b63a31
Merge pull request #152 from jonathanberger/patch-1
incompl Jun 28, 2019
e34dcb6
Update while moving to netlify
incompl Nov 8, 2020
7550845
Fix page titles
incompl Nov 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
_site
node_modules
.ftppass
package-lock.json
.jekyll-cache
14 changes: 12 additions & 2 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ This is the source for "learnlayout.com":http://learnlayout.com in case you're c
h2. How to Build

* If needed, install "NPM":https://npmjs.org/
** Last tested version was 6.14.4
* If needed, install "grunt":http://gruntjs.com @npm install -g grunt-cli@
** Last tested grunt-cli version was 1.3.2
** Last tested grunt version was 0.4.5
* If needed, do a @npm install@
* If needed, install jekyll @sudo gem install jekyll@
* If needed, install "pygments":http://pygments.org/download/ (I have used `sudo easy_install pygments` on Mac)
** Last tested version was 4.1.1
* If needed, install "pygments":http://pygments.org/download/
** I most recently used `brew install pygments` on Mac
** Last tested version was 2.7.2
* Build + run test server with @grunt serve@
* or build only with @grunt@

Expand All @@ -18,4 +24,8 @@ If you're not familiar with YAML, it's a very simple human-readable data format.

To contribute to a translation, start with "en.yaml":https://github.com/incompl/csslayoutsite/blob/master/translations/en.yaml and either "email me":mailto:[email protected] translated YAML files or make pull requests against this repository if you know how.

To test a translation, change the @lang@ property in "_config.yml":https://github.com/incompl/csslayoutsite/blob/master/templates/_config.yml before you build. If you choose an RTL language you need to add the line @rtl: true@ to the config.
To test a translation, add a @lang@ parameter when using the @grunt@ commands described above. For example, @grunt serve --lang=es@

h2. License

"Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)":https://creativecommons.org/licenses/by-nc/4.0/
4 changes: 3 additions & 1 deletion _plugins/localize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def render(context)

class RtlTag < Liquid::Tag
def render(context)
rtl = context.registers[:site].config['rtl']
@lang = context.registers[:site].config['lang']
@translations = YAML::load(File.open("translations/#{@lang}.yaml"))
rtl = @translations['rtl']
if rtl == true
"rtl"
else
Expand Down
3 changes: 2 additions & 1 deletion deploy-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ grunt deploy --lang=pt-br
grunt deploy --lang=pt-pt
grunt deploy --lang=ru
grunt deploy --lang=zh
grunt deploy --lang=zh-tw
grunt deploy --lang=zh-tw
grunt deploy --lang=ar
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.1.0",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-ftp-deploy": "^0.1.10",
"grunt-jekyll": "~0.4.2"
}
}
31 changes: 1 addition & 30 deletions templates/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
<html>
<head>
<meta charset="utf-8">
{% if page.title != nil %}
<title>{% localize global.short_title %} - {% localize page.title %}</title>
{% else %}
<title>{% localize global.title %}</title>
{% endif %}
<title>{% localize global.title %}</title>
<meta name="viewport" content="width=600">
<link rel="stylesheet" href="/css/style.css"/>
<link rel="stylesheet" href="/css/code.css"/>
Expand Down Expand Up @@ -43,10 +39,6 @@

<div id="container">

{% if page.title %}
<h1 class="content">{% localize page.title %}</h1>
{% endif %}

{{ content }}

{% if page.prev or page.next %}
Expand Down Expand Up @@ -100,27 +92,6 @@ <h1 class="content">{% localize page.title %}</h1>
</li>

</div>
<div id="advertisements">
<span>Ads by <a href="http://bocoup.com">Bocoup</a></span>
<div>
<!--/* Revive Adserver Javascript Tag v3.0.5 */-->
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://revive.bocoup.com/www/delivery/ajs.php':'http://revive.bocoup.com/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=4");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://revive.bocoup.com/www/delivery/ck.php?n=a9ab3fcf&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://revive.bocoup.com/www/delivery/avw.php?zoneid=4&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a9ab3fcf' border='0' alt='' /></a></noscript>
</div>
</div>

</body>
</html>
5 changes: 4 additions & 1 deletion templates/about.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: default
title: about.title
noFooter: true
---

Expand All @@ -22,6 +21,10 @@
}
</style>

<h1>
{% localize about.title %}
</h1>

<div id="credits">
<a href="http://incompl.com"><img src="http://www.gravatar.com/avatar/b8d0f1cea63b396befeeb8c74533abb6?s=300" alt="Greg Smith"></a>

Expand Down
5 changes: 4 additions & 1 deletion templates/box-model.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: default
title: box_model.title
next: box-sizing
prev: max-width
num: 5
Expand All @@ -26,6 +25,10 @@
}
</style>

<h1>
{% localize box_model.title %}
</h1>

<p class="content">
{% localize box_model.intro %}
</p>
Expand Down
5 changes: 4 additions & 1 deletion templates/box-sizing.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: default
title: box_sizing.title
next: position
prev: box-model
num: 6
Expand All @@ -26,6 +25,10 @@
}
</style>

<h1>
{% localize box_sizing.title %}
</h1>

<p class="content">
{% localize box_sizing.1 %}
</p>
Expand Down
5 changes: 4 additions & 1 deletion templates/clear.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: clear.title
next: clearfix
prev: float
num: 10
---

<h1>
{% localize clear.title %}
</h1>

<p class="content">
{% localize clear.1 %}
</p>
Expand Down
5 changes: 4 additions & 1 deletion templates/clearfix.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: clearfix.title
next: float-layout
prev: clear
num: 11
---

<h1>
{% localize clearfix.title %}
</h1>

<p class="content">
{% localize clearfix.1 %}
</p>
Expand Down
5 changes: 4 additions & 1 deletion templates/column.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: column.title
next: flexbox
prev: inline-block-layout
num: 17
---

<h1>
{% localize column.title %}
</h1>

<p class="content">
{% localize column.1 %}
</p>
Expand Down
31 changes: 6 additions & 25 deletions templates/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ h1.content {
direction: ltr;
}

.css, .html {
.language-css, .language-html {
display: block;
text-shadow: 1px 1px 0 black;
background-color: #333333;
Expand All @@ -183,15 +183,15 @@ h1.content {
white-space: pre;
}

.html:before {
.language-html:before {
content: "html";
float: right;
color: black;
text-shadow: -1px 1px 0 #666; /* \m/ */
font-size: 1.5em;
}

.css:before {
.language-css:before {
content: "css";
float: right;
color: black;
Expand Down Expand Up @@ -338,29 +338,10 @@ footer {
float: left;
}

#share #license {

#share > li:not(first-child){
margin-left: 10px;
}

#advertisements {
clear: both;
margin: 0 auto;
width: 370px;
text-align: center;
}

#advertisements span {
font-size: 10px;
font-style: italic;
margin: 0;
}

#advertisements div {
font-size: 13px;
text-align: left;
}


@media screen and (min-width:601px) {

#menu {
Expand Down Expand Up @@ -415,7 +396,7 @@ footer {

}

@media screen and (max-width:404px) {
@media screen and (max-width:404px) {

a.nav {
width: 40%;
Expand Down
5 changes: 4 additions & 1 deletion templates/display.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: display.title
next: margin-auto
prev: no-layout
num: 2
---

<h1>
{% localize display.title %}
</h1>

<p class="content">
{% localize display.intro %}
</p>
Expand Down
5 changes: 4 additions & 1 deletion templates/flexbox.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: flexbox.title
next: frameworks
prev: column
num: 18
---

<h1>
{% localize flexbox.title %}
</h1>

<p class="content">
{% localize flexbox.1 %}
</p>
Expand Down
5 changes: 4 additions & 1 deletion templates/float-layout.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: float_layout.title
next: percent
prev: clearfix
num: 12
---

<h1>
{% localize float_layout.title %}
</h1>

<p class="content">
{% localize float_layout.1 %}
</p>
Expand Down
5 changes: 4 additions & 1 deletion templates/float.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: float.title
next: clear
prev: position-example
num: 9
---

<h1>
{% localize float.title %}
</h1>

<p class="content">
{% localize float.1 %}
</p>
Expand Down
8 changes: 5 additions & 3 deletions templates/frameworks.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
layout: default
title: frameworks.title
next: about
prev: flexbox
num: 19
---

<h1>
{% localize frameworks.title %}
</h1>

<p class="content">
{% localize frameworks.1 %}
</p>
Expand Down Expand Up @@ -38,14 +41,13 @@
<a href="http://www.blueprintcss.org/"><img src="/images/blueprint.jpg" alt="blueprint"></a>
<a href="http://www.unsemantic.com"><img src="/images/unsemantic.png" alt="unsemantic"></a>
<a href="http://bluetrip.org/"><img src="/images/bluetrip.jpg" alt="bluetrip"></a>
<a href="http://elasticss.com/"><img src="/images/elasticss.jpg" alt="elasticss"></a>
<a href="http://twitter.github.com/bootstrap/"><img src="/images/bootstrap.jpg" alt="bootstrap"></a>
<a href="http://gumbyframework.com/"><img src="/images/gumby.jpg" alt="gumby"></a>
<a href="http://susy.oddbird.net/"><img src="/images/susy.jpg" alt="susy"></a>
<a href="http://foundation.zurb.com/"><img src="/images/foundation.png" alt="foundation"></a>
<a href="http://imperavi.com/kube/"><img src="/images/kube.png" alt="kube"></a>
<a href="http://groundworkcss.github.com/"><img src="/images/groundwork.gif" alt="groundwork"></a>
<a href="http://semantic-ui.com"><img src="/images/semantic_ui.png" alt="semantic ui"></a>
<a href="http://purecss.io/"><img src="/images/logo_pure.png" alt="Purecss"></a>
</div>

<p class="content">
Expand Down
Binary file removed templates/images/elasticss.jpg
Binary file not shown.
Binary file removed templates/images/gumby.jpg
Binary file not shown.
Binary file added templates/images/logo_pure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<span><a href="http://pt-pt.learnlayout.com">{% localize index.pt-pt %}</a></span>
<span><a href="http://ru.learnlayout.com">{% localize index.russian %}</a></span>
<span><a href="http://fa.learnlayout.com">{% localize index.persian %}</a></span>
<span><a href="http://ar.learnlayout.com">{% localize index.arabic %}</a></span>
<span><a href="http://zh.learnlayout.com">{% localize index.chinese %}</a></span>
<span><a href="http://zh-tw.learnlayout.com">{% localize index.tradchinese %}</a></span>
<span><a href="http://ko.learnlayout.com">{% localize index.korean %}</a></span>
Expand Down
Loading