Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
d84ca6d
Implementando plugins traduccion
Twinber Jul 30, 2018
17df109
prueba sustitucion 404.md
Twinber Jul 30, 2018
12e3349
Primer avance de Get Started y README.md terminado
Arkangel12 Jul 30, 2018
eb9e144
Traducción de layout.md
drnodev Jul 31, 2018
c6357e3
Set theme jekyll-theme-cayman
Jul 31, 2018
3766380
elimar theme cayman
Twinber Jul 31, 2018
f4e604c
resolviendo problema con index.html no generado en root
Twinber Jul 31, 2018
3cdd710
status image travis
Twinber Aug 1, 2018
9fa1b5c
enlace a readme español
Twinber Aug 1, 2018
8ffa818
deshabilitar deploy a firebase
Twinber Aug 1, 2018
3fea877
force push para travis
Twinber Aug 1, 2018
295f8ed
firebase_token travis
Twinber Aug 1, 2018
ce0ecf3
deploy firebase 2
Twinber Aug 1, 2018
662521b
correcion nombre de proyecto en firebase
Twinber Aug 1, 2018
3828671
traduccion index primera version
Twinber Aug 2, 2018
aa41e74
Ilimitadas
drnodev Aug 2, 2018
b42dc90
Merge pull request #7 from flutter-es/traduccion_index
Twinber Aug 2, 2018
8f4f1bd
readme ES revision 1
Twinber Aug 2, 2018
7e2f3ae
agregada mencion a carpeta es_ES
Twinber Aug 2, 2018
033f1cd
Merge pull request #8 from flutter-es/mejora_readme_es
Twinber Aug 2, 2018
712c684
Restricciones Ilimitadas
drnodev Aug 2, 2018
7f0fbdd
Flexibles
drnodev Aug 2, 2018
433d56e
typos
drnodev Aug 2, 2018
99a685c
corrección errata
Twinber Aug 3, 2018
2a1acd7
Merge pull request #17 from flutter-es/errata_readme
Twinber Aug 3, 2018
c57f6fb
Modificaciones por Review
drnodev Aug 3, 2018
7368142
refencia a wiki desde el readme eliminando duplicidad
Twinber Aug 3, 2018
ab1456a
Merge pull request #18 from flutter-es/readme_v3
Aug 3, 2018
0928fc3
Get started (#11)
Arkangel12 Aug 3, 2018
7147237
Merge pull request #12 from alexcotte/master
drnodev Aug 3, 2018
5ff719c
Traducción del archivo accessiblity.md
cronos88 Aug 4, 2018
61e350f
Corrección de algunas palabras en el archivo accessiblity.md
cronos88 Aug 4, 2018
fbb0357
correccion traducción título
cronos88 Aug 4, 2018
212399f
Borrado archivo android-release-build
cronos88 Aug 4, 2018
47ae5c8
Merge pull request #19 from flutter-es/traduccion_accessiblity
juanmorillios Aug 4, 2018
88bae12
Cambiado h1 para que se vea bien en móvil
Twinber Aug 5, 2018
8cfc855
Merge pull request #23 from flutter-es/home_mobile
Twinber Aug 5, 2018
60d1b59
traducción de docs.md
Twinber Aug 5, 2018
1b55a47
ref: issues/26 cambiando a Gestos (#27)
drnodev Aug 5, 2018
f2a2b9d
correcciones PR #25
Twinber Aug 5, 2018
8bf3645
correcciones varias
Twinber Aug 6, 2018
79cb14c
acento
Twinber Aug 6, 2018
caafca3
Merge branch 'docs_md' of https://github.com/flutter-es/website into …
maginkgo Aug 6, 2018
4767dfb
Merge pull request #29 from flutter-es/correcciones_home
Twinber Aug 6, 2018
e8bff92
Merge branch 'master' of https://github.com/flutter-es/website into m…
maginkgo Aug 6, 2018
108f233
traducción de widgets-intro.md
maginkgo Aug 6, 2018
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ packages
example/*.dart

.idea/
.vscode/
4 changes: 1 addition & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
source 'https://rubygems.org'
gem 'jekyll'
gem 'jekyll', '3.3.1'
gem 'therubyracer'
gem 'html-proofer'
gem 'rake'
gem 'jekyll-redirect-from'
gem 'liquid-tag-parser'
38 changes: 11 additions & 27 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,8 @@ GEM
colorator (1.1.0)
colorize (0.8.1)
concurrent-ruby (1.0.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.11.0)
ffi (>= 1.3.0)
eventmachine (1.2.7)
extras (0.3.0)
forwardable-extended (~> 2.5)
ffi (1.9.25)
forwardable-extended (2.6.0)
html-proofer (3.9.1)
Expand All @@ -30,34 +24,26 @@ GEM
parallel (~> 1.3)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
jekyll (3.8.3)
jekyll (3.3.1)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
rouge (~> 1.7)
safe_yaml (~> 1.0)
jekyll-redirect-from (0.14.0)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.0.0)
jekyll-watch (1.5.1)
listen (~> 3.0)
kramdown (1.17.0)
libv8 (3.16.14.19)
liquid (4.0.0)
liquid-tag-parser (1.9.0)
extras (~> 0.3)
liquid (>= 3.0, < 5.0)
liquid (3.0.6)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
Expand All @@ -76,7 +62,7 @@ GEM
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
ref (2.0.0)
rouge (3.1.1)
rouge (1.11.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.5.7)
Expand All @@ -99,11 +85,9 @@ PLATFORMS

DEPENDENCIES
html-proofer
jekyll
jekyll-redirect-from
liquid-tag-parser
jekyll (= 3.3.1)
rake
therubyracer

BUNDLED WITH
1.16.2
1.16.3
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# [Flutter][]'s website


Proyecto de traducción de:
The website for [Flutter][].
[Readme en español](https://github.com/flutter-es/website/tree/master/es_ES/)

[![Build Status](https://travis-ci.org/flutter/website.svg?branch=master)](https://travis-ci.org/flutter/website)

Expand Down
39 changes: 20 additions & 19 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ baseurl: "" # the subpath of your site, e.g. /blog/
url: https://flutter.io
port: 4002
github_username: flutter
lang: es_ES

# Build settings
markdown: kramdown
Expand All @@ -16,25 +17,25 @@ kramdown:

exclude: [example, packages, tool]

plugins:
- jekyll-redirect-from

## Site-wide shorthands

alert:
tip: >-
<aside class="alert alert-success" role="alert" markdown="1">
<i class="fa fa-lightbulb-o"></i> **Tip:**
note: >-
<aside class="alert alert-info" role="alert" markdown="1">
<i class="fa fa-info-circle"></i> **Note:**
important: >-
<aside class="alert alert-warning" role="alert">
<i class="fa fa-warning"></i> **Important:**
warning: >-
<aside class="alert alert-danger" role="alert">
<i class="fa fa-exclamation-circle"></i> **Warning:**
end: </aside>
# plugins:
# - jekyll-redirect-from

# ## Site-wide shorthands

# alert:
# tip: >-
# <aside class="alert alert-success" role="alert" markdown="1">
# <i class="fa fa-lightbulb-o"></i> **Tip:**
# note: >-
# <aside class="alert alert-info" role="alert" markdown="1">
# <i class="fa fa-info-circle"></i> **Note:**
# important: >-
# <aside class="alert alert-warning" role="alert">
# <i class="fa fa-warning"></i> **Important:**
# warning: >-
# <aside class="alert alert-danger" role="alert">
# <i class="fa fa-exclamation-circle"></i> **Warning:**
# end: </aside>

# callout_danger: '<div class="bs-callout bs-callout-danger">'
# callout_default: '<div class="bs-callout bs-callout-default">'
Expand Down
19 changes: 19 additions & 0 deletions _plugins/es-data-reader.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module Jekyll
class EsDataReader < Jekyll::DataReader

DATA_KEY = "_data/"
PREFIX = "es_ES"

def read_data_file(path)
file_path = path.dup
es_file_path = path.dup
data_key_index = path.index(DATA_KEY)
if data_key_index && data_key_index >= 0
es_file_path.insert(data_key_index, "#{PREFIX}/")
File.exist?(es_file_path) && file_path = es_file_path
end
super(file_path)
end

end
end
32 changes: 32 additions & 0 deletions _plugins/es-generator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module Jekyll
class ESGenerator < Generator
safe true
PREFIX = "es_ES"

def generate(site)
lang = site.config["lang"] || "en"
if !PREFIX.eql?(lang)
return
end
puts "Configuration file: Habilitar archivo de configuración,Español"
translatedNum = 0
deleteList = []
site.pages.each do |page|
newPath = "#{site.source}/#{PREFIX}/#{page.path}"
isFileExist = File.exist?(newPath)
if isFileExist
deleteList << page
translatedNum += 1
end
end
site.pages -= deleteList
totalNum = site.pages.size
completeP = translatedNum * 100 / totalNum.to_f
completePStr = format('%.2f', completeP)
puts "=================== Progreso de la traducción:#{translatedNum}/#{totalNum},Porcentaje:#{completePStr}%"
# site.pages.each do |page|
# puts "#{page.url} => #{page.path}"
# end
end
end
end
22 changes: 22 additions & 0 deletions _plugins/es-include.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module Jekyll
class ESInClude < Jekyll::Tags::IncludeTag

INCLUDE_KEY = "_includes/"
PREFIX = "es_ES"

def read_file(file, context)
file_path = file.dup
cn_file_path = file.dup
include_index = file.index(INCLUDE_KEY)
if include_index >= 0
cn_file_path.insert(include_index, "#{PREFIX}/")
File.exist?(cn_file_path) && file_path = cn_file_path
end

super(file_path, context)
end

end
end

Liquid::Template.register_tag("include", Jekyll::ESInClude)
6 changes: 6 additions & 0 deletions _plugins/es-plugin-injector.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Inyecta los objetos necesarios para el complemento Español
# antes de que el Bundle comienze a funcionar
# 1. Reemplaza el lector con EsReader
Jekyll::Hooks.register :site, :after_init do |site|
site.reader = Jekyll::EsReader.new(site)
end
14 changes: 14 additions & 0 deletions _plugins/es-reader.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module Jekyll
class EsReader < Jekyll::Reader

def read
@site.layouts = LayoutReader.new(site).read
read_directories
sort_files!
@site.data = Jekyll::EsDataReader.new(site).read(site.config["data_dir"])
CollectionReader.new(site).read
ThemeAssetsReader.new(site).read
end

end
end
Loading