![]() Ibtool -strings-file fr.lproj/MainMenu.strings -write fr.lproj/MainMenu.xib en.lproj/MainMenu.xib Ibtool -generate-strings-file en.lproj/PreferencesAdvanced.strings en.lproj/PreferencesAdvanced.xibĪfterwards you can generate a new MainMenu.xib file based on the original one and the translated strings file, again using ibtool: ![]() Ibtool -generate-strings-file en.lproj/PreferencesBrowser.strings en.lproj/PreferencesBrowser.xib Ibtool -generate-strings-file en.lproj/PreferencesGeneral.strings en.lproj/PreferencesGeneral.xib ![]() Best is to keep it in the UTF-16 text encoding format, for example Apple's TextEdit reads and saves this format correctly.īelow the commands for the other xib files: The resulting file MainMenu.strings can be given to the translator. Ibtool -generate-strings-file en.lproj/MainMenu.strings en.lproj/MainMenu.xib To translate Interface Builder xib files, you best use the ibtool command-line utility to extract all the strings. Checkout this directory to your computer. You will find the current developer version of SEB for macOS at the path trunk/mac/SafeExamBrowser-src. Type is Subversion, and you don't need a username or password to check out the code. Name it as you like and use the URL below as Location: In Xcode 4 you do this in the Organizer windows' Repositories tab (see the Xcode documentation for details). Getting the SEB codeĪdd the SEB Sourceforge repository to Xcode. At the moment the GUI elements are contained the XIB files MainMenu.xib, PreferencesGeneral.xib. It handles the creation and display of the preferences window as well as switching between different modules/panes using the toolbar.Īs usual for Cocoa applications, you also have to examine the Interface Builder XIB file to understand how SEB GUI elements work, especially Cocoa bindings in the preferences window. MBPreferencesController provides an implementation of a standard preferences window. Implemented with Cocoa Bindings to the Shared User Defaults Controller. Preferences Advanced Pane: Settings for using third party applications together with SEB. Loads and saves preferences from the system's user defaults database and implements Cocoa Bindings for confirm password check. Preferences General Pane: Settings for passwords to enter preferences and quit SEB, buttons to quit and restart SEB, show About panel and help. View class for the about panel, necessary for the background image in the borderless window.Ĭontroller for the preferences window, populates it with panes. Loads and displays localized copyright and version from ist and closes the about window when the user clicks on it. Window class for the about panel (window without border and title bar). By overriding the mouseDown event it's prevented that the cap window is ordered front when clicked in. View class for the windows covering all attached screens with a black background. Locks system into kiosk mode, opens browser and preferences window and exits SEB.īrowser window class, also containing all the web view delegates, which handle right clicks in the browser window and web plugins, requests to open link in a new window, Javascript alerts and browser errors. Among others there will be additional preferences panes for more options and SEB will be ported to a document-based architecture to support opening multiple webpages in separate windows and tabs. The class structure is supposed to change soon, since SEB will go trough major enhancements in the next months. SEB for macOS version 1.3 consists of the classes listed below. Please note: This doesn't apply to the Mac App Store version of SEB which is using the system's built-in WebKit framework (due to restrictions of the Mac App Store). SEB for macOS embeds a private copy of the WebKit framework, so Apple updates of Safari don't affect the compatibility of SEB with existing quizzes. SEB for macOS is using the WebKit browser engine, on which Safari on Mac and iOS and some new open source browsers like Google Chrome and Android browsers are based. It has been developed for Mac OS X 10.6 Snow Leopard and updated for OS X 10.7 Lion, we don't intend to support older system versions. SEB for macOS is a modern Mac OS X application, written in Objective-C, using the Cocoa system framework.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |