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 101347 Details for
Bug 233001
"Translate exact matches" code is translating entries that have already been translated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch
patch.txt (text/plain), 2.42 KB, created by
Denis Roy
on 2008-05-21 15:15:49 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Denis Roy
Created:
2008-05-21 15:15:49 EDT
Size:
2.42 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.babel >Index: server/html/callback/setStringTranslation.php >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.babel/server/html/callback/setStringTranslation.php,v >retrieving revision 1.18 >diff -u -r1.18 setStringTranslation.php >--- server/html/callback/setStringTranslation.php 14 May 2008 18:51:30 -0000 1.18 >+++ server/html/callback/setStringTranslation.php 21 May 2008 19:12:07 -0000 >@@ -63,29 +63,27 @@ > }else{ > //FIND ALL STRINGS THAT ARE THE SAME ACROSS VERSIONS > $query = "select >- string_id >+ s.string_id > from >- strings, >- files >+ strings as s >+ INNER JOIN files AS f on s.file_id = f.file_id >+ INNER JOIN files AS the_file_selected_for_translation on the_file_selected_for_translation.file_id = (select file_id from strings where string_id = '".addslashes($string_id)."') > where >- files.file_id = strings.file_id >- and >- strings.value = (select value from strings where string_id = '".addslashes($string_id)."') >+ s.value = (select value from strings where string_id = '".addslashes($string_id)."') > and >- strings.name = (select name from strings where string_id = '".addslashes($string_id)."') >- and >- strings.is_active = 1 >- "; >+ s.name = (select name from strings where string_id = '".addslashes($string_id)."') >+ and f.name = the_file_selected_for_translation.name >+ and f.project_id = the_file_selected_for_translation.project_id >+ and s.is_active = 1"; > > $res = mysql_query($query,$dbh); > $affected_rows += mysql_affected_rows(); >- > while($row = mysql_fetch_assoc($res)){ > $string_ids[] = $row['string_id']; > } > > //GET CURRENT TRANSLATION FOR THIS STRING >- $query= "select value from translations where string_id = '".addslashes($string_id)."'and language_id = '".addslashes($language_id)."' and is_active = 1 order by version limit 1"; >+ $query= "select value from translations where string_id = '".addslashes($string_id)."' and language_id = '".addslashes($language_id)."' and is_active = 1 order by version limit 1"; > $res = mysql_query($query,$dbh); > $string_translation = ""; > while($row = mysql_fetch_assoc($res)){ >@@ -105,6 +103,7 @@ > value = '".addslashes($string_translation)."' > and > is_active = 1 >+ and language_id = '" . addslashes($language_id)."' > "; > > $res = mysql_query($query,$dbh);
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 233001
: 101347