Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 216036 Details for
Bug 349107
properties file for template is located in wrong path in org.eclipse.wst.jsdt.ui.nl_ja
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
implement for adding nl path feature
addnlpathfeature.txt (text/plain), 2.67 KB, created by
Satoru Yoshida
on 2012-05-22 10:13:49 EDT
(
hide
)
Description:
implement for adding nl path feature
Filename:
MIME Type:
Creator:
Satoru Yoshida
Created:
2012-05-22 10:13:49 EDT
Size:
2.67 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P babelwrk >Index: server/classes/export/generate1.php >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.babel/server/classes/export/generate1.php,v >retrieving revision 1.93 >diff -u -r1.93 generate1.php >--- server/classes/export/generate1.php 25 Dec 2011 18:24:32 -0000 1.93 >+++ server/classes/export/generate1.php 22 May 2012 14:07:54 -0000 >@@ -231,26 +231,37 @@ > } else { > exec("mkdir $tmp_dir"); > } >+ >+ $need_nl_path_case = array('templates/', 'config/', 'data/', 'property_files/'); > /* > * Generate each *.properties file > */ > foreach ($plugin_row as $properties_file) { >- /* >- * Convert the filename to *_lang.properties, e.g., foo_fr.properties >- */ >+ $dirname = $properties_file['dir_name']; > $filename = $properties_file['file_name']; >- if (preg_match( "/^(.*)\.properties$/", $filename, $matches)) { >- $filename = $matches[1] . '_' . $language_iso . '.properties'; >+ >+ if (in_array($dirname, $need_nl_path_case)) { >+ /* >+ * Convert the dirname to nl/lang/path, e.g., nl/fr/templates >+ */ >+ $dirname = 'nl/' . $language_iso . '/' . $dirname; >+ } else { >+ /* >+ * Convert the filename to *_lang.properties, e.g., foo_fr.properties >+ */ >+ if (preg_match( "/^(.*)\.properties$/", $filename, $matches)) { >+ $filename = $matches[1] . '_' . $language_iso . '.properties'; >+ } > } >- echo "${leader}${leader}${leader}Generating properties file " . $properties_file['dir_name'] . $filename . " (file_id=" . $properties_file['file_id'] . ")\n"; >+ echo "${leader}${leader}${leader}Generating properties file " . $dirname . $filename . " (file_id=" . $properties_file['file_id'] . ")\n"; > /* > * Create any needed sub-directories > */ >- exec("mkdir -p \"" . $tmp_dir . $properties_file['dir_name'] . "\""); >+ exec("mkdir -p \"" . $tmp_dir . $dirname . "\""); > /* > * Start writing to the file > */ >- $fullpath = $tmp_dir . $properties_file['dir_name'] . $filename; >+ $fullpath = $tmp_dir . $dir_name . $filename; > $outp = fopen($fullpath, "w"); > fwrite($outp, "# Copyright by many contributors; see http://babel.eclipse.org/"); > if (strcmp($language_iso, "en_AA") == 0) { >@@ -311,7 +322,7 @@ > * Finish the properties file > */ > fclose($outp); >- echo "${leader}${leader}${leader}Completed properties file " . $properties_file['dir_name'] . $filename . "\n"; >+ echo "${leader}${leader}${leader}Completed properties file " . $dirname . $filename . "\n"; > } > /* > * Copy in the various legal files
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 349107
: 216036