radiant-turkish_language_pack-extension 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ namespace :radiant do
2
+ namespace :extensions do
3
+ namespace :de do
4
+
5
+ desc "Runs the migration of the I18n Tr extension"
6
+ task :migrate => :environment do
7
+ require 'radiant/extension_migrator'
8
+ if ENV["VERSION"]
9
+ I18nTrExtension.migrator.migrate(ENV["VERSION"].to_i)
10
+ else
11
+ I18nTrExtension.migrator.migrate
12
+ end
13
+ end
14
+
15
+ desc "Copies public assets of the I18n Tr to the instance public/ directory."
16
+ task :update => :environment do
17
+ is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
18
+ puts "Copying assets from I18nTrExtension"
19
+ Dir[I18nTrExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
20
+ path = file.sub(I18nTrExtension.root, '')
21
+ directory = File.dirname(path)
22
+ mkdir_p RAILS_ROOT + directory, :verbose => false
23
+ cp file, RAILS_ROOT + path, :verbose => false
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/ruby
2
+ # 2011 Radiant CMS Dev Team
3
+ # Mahmut Bulut <regularlambda>
4
+
5
+ # This file is part of Radiant CMS.
6
+ #
7
+ # Radiant CMS is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU General Public License as published by
9
+ # the Free Software Foundation, either version 3 of the License, or
10
+ # (at your option) any later version.
11
+ #
12
+ # Naksh is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with Naksh. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+ require 'rubygems'
21
+ require 'rake'
22
+
23
+ $spec=Gem::Specification.new do |s|
24
+ s.name = 'radiant-turkish_language_pack-extension'
25
+ s.version = '1.0.3'
26
+ s.add_dependency 'radiant'
27
+ s.author = 'Mahmut Bulut'
28
+ s.email = 'radiantcms+subscribe@googlegroups.com'
29
+ s.extra_rdoc_files = %w[ README ]
30
+ s.files = FileList["**/*"].
31
+ exclude('.svn').
32
+ exclude('pkg').
33
+ exclude('.svnignore').
34
+ exclude('site').
35
+ exclude('docs/userguide/*/index.xml').
36
+ exclude('.project').
37
+ exclude('.git').
38
+ exclude('.gitignore').
39
+ to_a
40
+ s.description = 'Radiant CMS Turkish Language Pack Extension'
41
+ s.has_rdoc = true
42
+ s.homepage = 'http://rubyforge.org/projects/radiant/'
43
+ s.platform = Gem::Platform::RUBY
44
+ s.rdoc_options << '--title' << 'Radiant CMS Turkish Language Pack Extension' <<
45
+ '--main' << 'README' <<
46
+ '--line-numbers'
47
+ s.summary = 'Radiant CMS Turkish Language Extension'
48
+ s.required_ruby_version = 1.8
49
+ end
@@ -0,0 +1,9 @@
1
+ class TurkishLanguagePackExtension < Radiant::Extension
2
+ version "1.0"
3
+ description "Provides a Turkish translation for the Radiant admin interface"
4
+ url "http://yourwebsite.com/tr"
5
+
6
+ def activate
7
+
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: radiant-turkish_language_pack-extension
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 3
10
+ version: 1.0.3
11
+ platform: ruby
12
+ authors:
13
+ - Mahmut Bulut
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-08-28 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: radiant
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ description: Radiant CMS Turkish Language Pack Extension
35
+ email: radiantcms+subscribe@googlegroups.com
36
+ executables: []
37
+
38
+ extensions: []
39
+
40
+ extra_rdoc_files:
41
+ - README
42
+ files:
43
+ - config/locales/tr.yml
44
+ - config/locales/tr_available_tags.yml
45
+ - doc/classes/TurkishLanguagePackExtension.html
46
+ - doc/classes/TurkishLanguagePackExtension.src/M000001.html
47
+ - doc/created.rid
48
+ - doc/files/radiant-turkish_language_pack-extension_gemspec.html
49
+ - doc/files/Rakefile.html
50
+ - doc/files/README.html
51
+ - doc/files/turkish_language_pack_extension_rb.html
52
+ - doc/fr_class_index.html
53
+ - doc/fr_file_index.html
54
+ - doc/fr_method_index.html
55
+ - doc/index.html
56
+ - doc/rdoc-style.css
57
+ - lib/tasks/i18n_tr_extension_tasks.rake
58
+ - radiant-turkish_language_pack-extension.gemspec
59
+ - Rakefile
60
+ - README
61
+ - turkish_language_pack_extension.rb
62
+ homepage: http://rubyforge.org/projects/radiant/
63
+ licenses: []
64
+
65
+ post_install_message:
66
+ rdoc_options:
67
+ - --title
68
+ - Radiant CMS Turkish Language Pack Extension
69
+ - --main
70
+ - README
71
+ - --line-numbers
72
+ require_paths:
73
+ - lib
74
+ required_ruby_version: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ hash: 3
80
+ segments:
81
+ - 0
82
+ version: "0"
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ requirements: []
93
+
94
+ rubyforge_project:
95
+ rubygems_version: 1.8.5
96
+ signing_key:
97
+ specification_version: 3
98
+ summary: Radiant CMS Turkish Language Extension
99
+ test_files: []
100
+