##// END OF EJS Templates
[#20288] Update the i18n'ed core doc to match CodeRay 1.1.0 capabilities....
[#20288] Update the i18n'ed core doc to match CodeRay 1.1.0 capabilities. This commit includes: <pre> 1. an update of the list of languages supported by CodeRay: * added: + clojure [added in CodeRay 1.0.x] + diff (patch) [added in CodeRay 0.8.x] + go [added in CodeRay 1.1.x] + haml [added in CodeRay 1.0.x] + lua [added in CodeRay 1.1.x] + sass [added in CodeRay 1.1.x] + taskpaper [added in CodeRay 1.1.x] + text (plain, plaintext) [never been documented in Redmine] * removed: - scheme [removed from CodeRay 1.0.x] * renamed: ~ erb (eruby, rhtml) [renamed from rhtml in CodeRay 1.0.x] 2. the inclusion of additional, comma-separated language mappings (aliases) inside parentheses: * cpp (c++, cplusplus) * delphi (pascal) * diff (patch) * erb (eruby, rhtml) * html (xhtml) * javascript (ecmascript, ecma_script, java_script, js) * ruby (irb) * text (plain, plaintext) * yaml (yml) </pre> Regarding the i18n: I used English as the base language. The changed sentence was the same in 94 out of 98 language files, public\help\xx[-xx]\wiki_syntax_detailed_[markdown||textile].html. The only four exceptions were: * cs; public\help\cs\wiki_syntax_detailed_textile.html * fr; public\help\fr\wiki_syntax_detailed_textile.html * ja; public\help\ja\wiki_syntax_detailed_textile.html * zh-tw; public\help\zh-tw\wiki_syntax_detailed_textile.html In the above given files, the sentence containing the supported languages is translated (and/or stylized). I have chosen to replace the whole translated sentence with the new English base sentence, as such leaving decisions about stylizing language names to translators and the people that actually use the respective languages. In general (and for English, as it's the base language) I think we can better stick to non-capitalized language names to prevent any formatting confusion. Contributed by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@14489 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12834:9fdd0862f74c
r14107:7c46fe1e4bd6
Show More
index.api.rsb
43 lines | 1.3 KiB | text/plain | TextLexer
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.array :custom_fields do
@custom_fields.each do |field|
api.custom_field do
api.id field.id
api.name field.name
api.customized_type field.class.customized_class.name.underscore if field.class.customized_class
api.field_format field.field_format
api.regexp field.regexp
Jean-Philippe Lang
Removed default values on custom field min and max length....
r12130 api.min_length field.min_length
api.max_length field.max_length
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.is_required field.is_required?
api.is_filter field.is_filter?
api.searchable field.searchable
api.multiple field.multiple?
api.default_value field.default_value
api.visible field.visible?
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 values = field.possible_values_options
if values.present?
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.array :possible_values do
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 values.each do |label, value|
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 api.possible_value do
Jean-Philippe Lang
Removed hardcoded format in API response....
r12128 api.value value || label
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 end
end
end
end
if field.is_a?(IssueCustomField)
Jean-Philippe Lang
Missing type=array attributes in custom fields API (#16739)....
r12834 api.array :trackers do
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 field.trackers.each do |tracker|
api.tracker :id => tracker.id, :name => tracker.name
end
end
Jean-Philippe Lang
Missing type=array attributes in custom fields API (#16739)....
r12834 api.array :roles do
Jean-Philippe Lang
REST API: custom fields definition (#11159)....
r11935 field.roles.each do |role|
api.role :id => role.id, :name => role.name
end
end
end
end
end
end