Download presentation
Presentation is loading. Please wait.
1
1 I18N testing Netbeans 6.8 beta michal.vanek@sun.com 1
2
Sun Confidential: Internal Only 2 agenda: What is i18n testing Areas of i18n I18n Issues NB setup for testing Multi byte input Rules I18n testing I18N cases Filling issues I18n demo
3
Sun Confidential: Internal Only 3 definitions I18N What is i18n? Internationalization (I18N) is the process of designing and coding a product so it can perform properly when it is used in other locales (regardless if it is translated (localized) or not) I18N enables a product to be translated, but it is not the doing of translations itself. What is i18n testing? I18N testing is testing a product to ensure i18n has been properly implemented; as part of that testing, the product is run in other locales using a pseudo localization (more later on that) I18N testing is NOT translation (localization or l10n) testing and does not test (nor need to test) a localized product.
4
Sun Confidential: Internal Only 4 Areas of i18n messages and labels the user would see - UI, terminal or written file labels, menus and messages come from correct locale ability to input and view user's language correctly editor tab, editor, explorer, wizards, output window applications that on deployment show in a browser resizing windows, buttons, labels database inputs... encoding handling... times and dates are shown as per locale user is in
5
Sun Confidential: Internal Only 5 How IDE looks like?
7
Sun Confidential: Internal Only 7 What is i18 issue? boxes instead of proper multibyte in some places when running ide incorrect font size of multibyte incorrect multibytes in saved file names on hdd message/label which do not come from language bundle not displayed whole message/label in correct size - resizing issue incorrect multibyte in web browser, database table usage of incorrect file encoding exceptions thrown because of multibyte characters
8
Sun Confidential: Internal Only 8 boxes instead of multibyte characters
9
Sun Confidential: Internal Only 9 boxes in url
10
Sun Confidential: Internal Only 10 incorrect name on hdd
11
Sun Confidential: Internal Only 11 Messages not from proper bundles
12
Sun Confidential: Internal Only 12 Setup NB for i18n testing - 1 download Vbox and install image http://wiki.netbeans.org/DownloadAndCopyLanguageBundlesTo NetbeansDirectory#section- DownloadAndCopyLanguageBundlesToNetbeansDirectory- ImagesWithLocalizedOS start OS in wanted locale http://wiki.netbeans.org/SetupOSToLocale always start netbeans with clear user dir $NB_DIR/bin/netbeans --userdir /tmp/ --fontsize 17
13
Sun Confidential: Internal Only 13 Setup NB for i18n testing - 2 all images are prepared for i18n testing testing language is Japanese always start NB with clear user dir bigger fontsize./netbeans -- userdir /tmp/nb --fontsize 17 start i18n testing
14
Sun Confidential: Internal Only 14 Testing languages main testing language Japanese アホと辞 File ぇ亜ぇ other languages Chinese ㄔㄟㄨ File ㄍ摸ㄍ Korean(only brackets instead of multibytes characters) [File]
15
Sun Confidential: Internal Only 15 How to input multi bytes open any japanese web site http://www.jpf.go.jp/j/publish/periodic/wochikochi/028.html c&p any text from this web to NB using japanese keyboard on win/linux/unix http://wiki.netbeans.org/HowToInputMultibyteCharacters
16
Sun Confidential: Internal Only 16 I18N testing practically
17
Sun Confidential: Internal Only 17 the multibyte should be displayed correctly in all parts of the UI or files where it can be seen the module should work properly, just like it does in english locale or if no multibyte was used use of multibyte in file names and contents as well as in properties and other data does the module code handle the encoding of such file names and data correctly make sure to test all tooltips I18N testing - 1
18
Sun Confidential: Internal Only 18 I18n testing - 2 Viewing of multibyte (ie encoding handling) verification if multibyte character are displayed and saved properly Viewing of multibyte after restart of ide after files/data modified common situation is where user uses multibyte in file name or data and then saves or the creates or saves the file or data and then user restarts ide
19
Sun Confidential: Internal Only 19 I18N - Resize testing when running pseudolocalized IDE, with longer messages and labels or larger fontsize - resize issue can show up if you do not see the suffix, that can be sypmtom of resize issue resize issue can be caused if hardcoded no english language can the length may increase by 20-30% verification if all windows are resized correctly and all messages are visible inside to perform testing it is necessary to use larger fontsize!!!
20
Sun Confidential: Internal Only 20 Resize issue examples
21
Sun Confidential: Internal Only 21 Databases testing Multibyte characters can be used also in databases. Some databases do not allow to use multibytes. First it is necessary to decide the possibility of usage multibytes and test it Create table, select, insert, delete and other allowed operations run/deploy aplication with multibytes I18n testing - 4
22
Sun Confidential: Internal Only 22 Exceptions handling If you see exception thrown because of multibyte, several steps have to performed before filing issue it issuezila. repeat the same process in the chinese locale. If exceptions does not appears - it is i18n issue if exception appeares in chinese locale, repeat the same with english locale. If exception does not appears it is i18n issue. If it appears, it is just exception and you do not have to file it as i18n issue. I18N testing - 5
23
Sun Confidential: Internal Only 23 Exceptions in i18n testing some labels are not being translated and do not have to contain prefix/suffix reserved words key words deployment messages other cases like compilation messages, exceptions.. What is not i18n bug? if not sure, if it is i18n bug, run Netbeans in english locale. If bug appears in English locale, probably it is not i18n bug. exception thrown also in english locale exceptions listed above
24
Sun Confidential: Internal Only 24 Project, files encoding default encoding is UTF-8 other encodings which support Japanesemultibytes linux/unix - EUC-JP windows31j some files can use different encoding by default, this encoding never changes (config files, XML,...)
25
Sun Confidential: Internal Only 25 Filling Issues put I18N prefix to all issues into summary field make a screenshot and circle with red write all steps how to reproduce it again, same like for other bugs put mvanek, jf4jbug to cc http://wiki.netbeans.org/BugPriorityGuidelines
26
Sun Confidential: Internal Only 26 Not to test JavaHelp Samples Installer/Uninstaller areas mentioned by M. Mirilovic
27
Sun Confidential: Internal Only 27 Other notes 99% messages without prefixes can be reserved words if info from developers say use of multibyte in some file name or data is legal, then do testing if developers say it should be legal, but they dont know for sure, we keep trying to get info, but test it anyway. if they say its not legal, contact i18n responsible person do not use locale or encoding in nb startup line - some services do not apply settings(dbase, app server) when running nb, browser should not need locale or encoding settings(provided by api modules) sample issues http://www.netbeans.org/issues/buglist.cgi?regetlastlist=1
28
Sun Confidential: Internal Only 28 resources: http://wiki.netbeans.org/I18NShortly http://wiki.netbeans.org/I18N
29
Sun Confidential: Internal Only 29 Questions?
30
30 THANK YOU michal.vanek@sun.com 30
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.