Localization for Xamarin viewer tools
Localization for Tools library follows each platform's convention.
Xamarin.Android Tools localization
You can put your translation strings.xml into Resources/values-xx directory of your application, i.e. values-fr for French.
See available languages here: Localization on Android.
Xamarin.iOS Tools localization
Navigate into
./Lib/Tools/src/PDFViewCtrlTools/Tools/en.lprojto find the exampleLocalizable.stringsfile that contains translation information for the Tools source code. Rename this file toPTLocalizable.stringsCreate a directory called
<language code>.lprojwithin your project resources directory and place thePTLocalizable.stringsfile from Step 2 in the directory. For a list of language codes supported by Apple, please refer to the Apple documentation.Add the translations into the
PTLocalizable.stringsfile.
Localization when compiling Tools from source (deprecated)
Warning
This method only applies to versions of the SDK prior to v6.10.2.
This method is not recommended as it involves editing the Tools.framework strings file directly which will create a requirement to manually merge strings files when updating to new versions of Tools.framework.
Follow the native localization guide.
Follow the Tools binding guide to create the C# NuGet packages.
Last updated
Was this helpful?