Some test text!
Tools.framework ships with its user-facing strings written in English. This
guide explains how you can localize the framework for any language.
If you are compiling the
Tools framework from source (not recommended), follow
to perform localization.
To localize the
Tools.framework user-facing strings, all you need to do is add
a strings file to the main bundle of your app.
To add a strings file in Xcode, go to
File -> New… -> File in the menu bar.
From the file templates window, choose
Strings File from the
Next. This new file must be named
PTLocalizable.strings in order
Tools framework to correctly identify the appropriate file to use for
Localization can be added to your app by following these steps:
Once your app is configured for localization, clicking 'Localize…' in Xcode's file
PTLocalizable.strings will allow you to localize the file.
To see which strings in the
Tools framework can be localized, see the included
Localizable.strings reference files. The location of these files depends on how
the framework was integrated into your app:
These files contain the key-value pairs which are used to define the user-facing
Tools and are for reference only — modifying them has no effect.
You can add any of the keys to your
PTLocalizable.strings file and define a custom
value to display to the user.
This method is not recommended as it involves editing the
file directly which will create a requirement to manually merge strings files when
updating to new versions of
If you are manually compiling the
Tools.framework from source, localization can
be performed by following these steps:
Toolsproject from the Project navigator.
Toolsproject from the dropdown or list of projects and targets.
Add a new localization by clicking on the plus sign below 'Localizations'.
Check the box next to the file for the new localization (the
Localizable.strings file) and click 'Finish'.
Localizable.strings file will be created in
/Lib/Tools/src/PDFViewCtrlTools/Tools/<language-code>.lproj with the contents of the reference language (English by default). You can then enter a translation on the right-hand side of each entry in the
Get the answers you need: Support
Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.
Select a platform to get started with your free trial.
Unlimited usage. No email address required.