blogo 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -2
- data/app/controllers/blogo/posts_controller.rb +3 -10
- data/config/locales/es.yml +143 -0
- data/config/locales/zh-CN.yml +47 -0
- data/lib/blogo/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baf63eb0f249638105c799b719b3cc8eb9863e5d
|
4
|
+
data.tar.gz: d0fdfce1e8f2d387459624a445125b81fe442d09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b1b1415f88f46d1d89db830b9dbba8e85297ca318cf880e2b0c1004b5ba53e0fc93aed68dd244ce08478a7857b3791422a04344ec5f7ee9971afeb1f1a56921
|
7
|
+
data.tar.gz: 733c8047be7a41a6ec3e1fb5a84be47c319ea295a8c74c6da120303a56b311c5e9ac903b56e4719a8e9fa2b0d9fca5f95263cd62958d5a3eeef14624e252144d
|
data/README.markdown
CHANGED
@@ -5,7 +5,6 @@ Mountable blog engine for Ruby on Rails 4.
|
|
5
5
|
[![Build Status](https://travis-ci.org/greyblake/blogo.png?branch=master)](https://travis-ci.org/greyblake/blogo)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/greyblake/blogo/badges/gpa.svg)](https://codeclimate.com/github/greyblake/blogo)
|
7
7
|
[![Coverage Status](https://coveralls.io/repos/greyblake/blogo/badge.png)](https://coveralls.io/r/greyblake/blogo)
|
8
|
-
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/greyblake/blogo/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
9
8
|
|
10
9
|
## Who uses Blogo?
|
11
10
|
|
@@ -80,7 +79,7 @@ Please see [wiki](https://github.com/greyblake/blogo/wiki).
|
|
80
79
|
* SEO optimized: generates meta description, keywords, meta tags for facebook([OpenGraph](http://ogp.me/)) and twitter
|
81
80
|
* Can be customized for your own needs.
|
82
81
|
* Very few external dependencies
|
83
|
-
* Localization support
|
82
|
+
* Localization support (en, es, pt-BR, zh-CN)
|
84
83
|
|
85
84
|
|
86
85
|
## Markup Formats
|
@@ -61,24 +61,17 @@ module Blogo
|
|
61
61
|
@paginator = Paginator.new(
|
62
62
|
posts_scope,
|
63
63
|
:page => (params[:page] || 1),
|
64
|
-
:per_page =>
|
65
|
-
:size =>
|
64
|
+
:per_page => Blogo.config.posts_per_page,
|
65
|
+
:size => Blogo.config.paginator_size)
|
66
66
|
end
|
67
67
|
|
68
68
|
# Sets @recent_posts and @tags.
|
69
69
|
#
|
70
70
|
def set_vars
|
71
|
-
@recent_posts = Post.published.limit(
|
71
|
+
@recent_posts = Post.published.limit(Blogo.config.recent_posts) if Blogo.config.recent_posts
|
72
72
|
@tags = Tag.all
|
73
73
|
end
|
74
74
|
|
75
|
-
# Engine configuration. Method +config+ is already used by Rails.
|
76
|
-
#
|
77
|
-
# @return [Blogo::Config]
|
78
|
-
def conf
|
79
|
-
Blogo.config
|
80
|
-
end
|
81
|
-
|
82
75
|
# @return [String, nil] full URL to image or nil
|
83
76
|
def meta_image
|
84
77
|
return nil unless @post.meta_image.present?
|
@@ -0,0 +1,143 @@
|
|
1
|
+
es:
|
2
|
+
date:
|
3
|
+
abbr_day_names:
|
4
|
+
- dom
|
5
|
+
- lun
|
6
|
+
- mar
|
7
|
+
- mié
|
8
|
+
- jue
|
9
|
+
- vie
|
10
|
+
- sáb
|
11
|
+
abbr_month_names:
|
12
|
+
-
|
13
|
+
- ene
|
14
|
+
- feb
|
15
|
+
- mar
|
16
|
+
- abr
|
17
|
+
- may
|
18
|
+
- jun
|
19
|
+
- jul
|
20
|
+
- ago
|
21
|
+
- sep
|
22
|
+
- oct
|
23
|
+
- nov
|
24
|
+
- dic
|
25
|
+
day_names:
|
26
|
+
- domingo
|
27
|
+
- lunes
|
28
|
+
- martes
|
29
|
+
- miércoles
|
30
|
+
- jueves
|
31
|
+
- viernes
|
32
|
+
- sábado
|
33
|
+
formats:
|
34
|
+
default: "%d/%m/%Y"
|
35
|
+
long: "%d de %B de %Y"
|
36
|
+
short: "%d de %b"
|
37
|
+
month_names:
|
38
|
+
-
|
39
|
+
- enero
|
40
|
+
- febrero
|
41
|
+
- marzo
|
42
|
+
- abril
|
43
|
+
- mayo
|
44
|
+
- junio
|
45
|
+
- julio
|
46
|
+
- agosto
|
47
|
+
- septiembre
|
48
|
+
- octubre
|
49
|
+
- noviembre
|
50
|
+
- diciembre
|
51
|
+
order:
|
52
|
+
- :day
|
53
|
+
- :month
|
54
|
+
- :year
|
55
|
+
datetime:
|
56
|
+
distance_in_words:
|
57
|
+
about_x_hours:
|
58
|
+
one: alrededor de 1 hora
|
59
|
+
other: alrededor de %{count} horas
|
60
|
+
about_x_months:
|
61
|
+
one: alrededor de 1 mes
|
62
|
+
other: alrededor de %{count} meses
|
63
|
+
about_x_years:
|
64
|
+
one: alrededor de 1 año
|
65
|
+
other: alrededor de %{count} años
|
66
|
+
almost_x_years:
|
67
|
+
one: casi 1 año
|
68
|
+
other: casi %{count} años
|
69
|
+
half_a_minute: medio minuto
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: menos de 1 minuto
|
72
|
+
other: menos de %{count} minutos
|
73
|
+
less_than_x_seconds:
|
74
|
+
one: menos de 1 segundo
|
75
|
+
other: menos de %{count} segundos
|
76
|
+
over_x_years:
|
77
|
+
one: más de 1 año
|
78
|
+
other: más de %{count} años
|
79
|
+
x_days:
|
80
|
+
one: 1 día
|
81
|
+
other: "%{count} días"
|
82
|
+
x_minutes:
|
83
|
+
one: 1 minuto
|
84
|
+
other: "%{count} minutos"
|
85
|
+
x_months:
|
86
|
+
one: 1 mes
|
87
|
+
other: "%{count} meses"
|
88
|
+
x_seconds:
|
89
|
+
one: 1 segundo
|
90
|
+
other: "%{count} segundos"
|
91
|
+
prompts:
|
92
|
+
day: Día
|
93
|
+
hour: Hora
|
94
|
+
minute: Minutos
|
95
|
+
month: Mes
|
96
|
+
second: Segundos
|
97
|
+
year: Año
|
98
|
+
blogo:
|
99
|
+
user:
|
100
|
+
comments: 'Comentarios'
|
101
|
+
please_enable_javascript: 'Por favor habilita JavaScript para ver los comentarios.'
|
102
|
+
post_by: 'Por'
|
103
|
+
read_post: 'Leer ➞'
|
104
|
+
recent_posts: 'Publicaciones recientes'
|
105
|
+
tags: 'Etiquetas'
|
106
|
+
|
107
|
+
admin:
|
108
|
+
add_new_post: 'Agregar una nueva publicación'
|
109
|
+
author: 'Autor'
|
110
|
+
comments: 'Comentarios'
|
111
|
+
delete_post_button: 'borrar'
|
112
|
+
edit_post: 'Editar publicación'
|
113
|
+
edit_post_button: 'editar'
|
114
|
+
email: 'Email'
|
115
|
+
image_already_exists: 'Imagen con nombre "%{image_name}" ya existe'
|
116
|
+
logged_in: 'Has iniciado sesión'
|
117
|
+
logged_out: 'Has cerrado sesión'
|
118
|
+
login: 'Iniciar sesión'
|
119
|
+
login_button: 'Iniciar sesión'
|
120
|
+
login_fail: 'Email o contraseña incorrectos'
|
121
|
+
modal_confirm_delete_post: 'Está seguro que quiere borrar "%{post_title}"?'
|
122
|
+
modal_title_close_preview: 'Cerrar vista previa'
|
123
|
+
new_post: 'Nueva Publicación'
|
124
|
+
password: 'Contraseña'
|
125
|
+
post_created: 'Se ha creado la publicación'
|
126
|
+
post_removed: 'Se ha borrado la publicación'
|
127
|
+
post_status_draft: 'borrador'
|
128
|
+
post_status_published: 'publicado'
|
129
|
+
post_title: 'Título de la publicación'
|
130
|
+
post_updated: 'La publicación se ha actualizado.'
|
131
|
+
posts: 'Publicaciones'
|
132
|
+
preview_post_button: 'Vista previa'
|
133
|
+
preview_press_esc: 'Vista previa. Presiona ESC para salir.'
|
134
|
+
publish: 'Publicar'
|
135
|
+
published_on: 'Publicado en'
|
136
|
+
save_post_button: 'Guardar'
|
137
|
+
sign_out: 'Cerrar sesión'
|
138
|
+
status: 'Estado'
|
139
|
+
tags_separated_with_commas: 'Etiquetas separadas con coma'
|
140
|
+
title: 'Título'
|
141
|
+
today: 'Hoy'
|
142
|
+
unique_permalink: 'unique-permalink'
|
143
|
+
recent_comments: 'Comentarios recientes'
|
@@ -0,0 +1,47 @@
|
|
1
|
+
zh-CN:
|
2
|
+
blogo:
|
3
|
+
user:
|
4
|
+
comments: '评论'
|
5
|
+
please_enable_javascript: '评论功能需要浏览器支持JavaScript'
|
6
|
+
post_by: 'By'
|
7
|
+
read_post: '阅读 ➞'
|
8
|
+
recent_posts: '最近文章'
|
9
|
+
tags: '标签'
|
10
|
+
|
11
|
+
admin:
|
12
|
+
add_new_post: '新建文章'
|
13
|
+
author: '作者'
|
14
|
+
comments: '评论'
|
15
|
+
delete_post_button: '删除'
|
16
|
+
edit_post: '编辑文章'
|
17
|
+
edit_post_button: '编辑'
|
18
|
+
email: 'Email'
|
19
|
+
image_already_exists: '已经有同名文件"%{image_name}"存在'
|
20
|
+
logged_in: '你已经登录'
|
21
|
+
logged_out: '你已经退出登录'
|
22
|
+
login: '登录'
|
23
|
+
login_button: '登录'
|
24
|
+
login_fail: '用户名或密码不正确'
|
25
|
+
modal_confirm_delete_post: '真的要删除文章"%{post_title}"吗?'
|
26
|
+
modal_title_close_preview: '关闭预览'
|
27
|
+
new_post: '新文章'
|
28
|
+
password: '密码'
|
29
|
+
post_created: '文章已被创建'
|
30
|
+
post_removed: '文章已被删除'
|
31
|
+
post_status_draft: '草稿'
|
32
|
+
post_status_published: '公开'
|
33
|
+
post_title: '文章标题'
|
34
|
+
post_updated: '文章已被更新'
|
35
|
+
posts: '文章'
|
36
|
+
preview_post_button: '预览'
|
37
|
+
preview_press_esc: '正在显示预览. 按ESC关闭'
|
38
|
+
publish: '公开'
|
39
|
+
published_on: '发表于'
|
40
|
+
save_post_button: '保存'
|
41
|
+
sign_out: '退出登录'
|
42
|
+
status: '状态'
|
43
|
+
tags_separated_with_commas: '标签(用半角逗号,分隔)'
|
44
|
+
title: '标题'
|
45
|
+
today: '现在'
|
46
|
+
unique_permalink: '永久链接(唯一)'
|
47
|
+
recent_comments: '最近评论'
|
data/lib/blogo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blogo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Potapov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -151,7 +151,9 @@ files:
|
|
151
151
|
- app/views/layouts/blogo/blog.html.erb
|
152
152
|
- config/environment.rb
|
153
153
|
- config/locales/en.yml
|
154
|
+
- config/locales/es.yml
|
154
155
|
- config/locales/pt-BR.yml
|
156
|
+
- config/locales/zh-CN.yml
|
155
157
|
- db/migrate/20140218134508_create_blogo_users.rb
|
156
158
|
- db/migrate/20140218134512_create_blogo_tags.rb
|
157
159
|
- db/migrate/20140218134550_create_blogo_posts.rb
|