~jonas-drange/ubuntu-start-page/1252899-mobile-friendly

« back to all changes in this revision

Viewing changes to translation-scripts/translation-functions.sh

  • Committer: Martin Albisetti
  • Date: 2012-09-28 18:03:51 UTC
  • mfrom: (138.1.12 trunk)
  • Revision ID: martin.albisetti@canonical.com-20120928180351-jil3e8gemzarfkvi
Update for 12.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        search_po=`msggrep --no-wrap -K -e "$search_en" $po | \
115
115
            grep msgstr | grep -v "msgstr \"\"" | \
116
116
            sed -e 's/msgstr "\(.*\)"/\1/'`
117
 
        sed -i -e \
118
 
            "s/<button>$search_en<\/button>/<button>$search_po<\/button>/" \
 
117
 
 
118
        # Replace for Baidu and Yahoo Search button
 
119
        sed -i -e \
 
120
            "s/<button type=\"submit\">$search_en<\/button>/<button type=\"submit\">$search_po<\/button>/" \
 
121
            ${output_page}
 
122
 
 
123
        # Newer Google button layout
 
124
        sed -i -e \
 
125
            "s/<span class=\"acchide\">$search_en<\/span>/<span class=\"acchide\">$search_po<\/span>/" \
119
126
            ${output_page}
120
127
 
121
128
        #translate help text
167
174
 
168
175
    #Generate translated files
169
176
    translate_release
170
 
}
 
 
b'\\ No newline at end of file'
 
177
}