Skip to main content

Tools for dealing with the .strings files for iOS and macOS

Project description

dotstrings

This is a Python toolkit for interacting with the localization files for iOS and macOS.

Examples

Read in a .strings file and print the entries:

import dotstrings

entries = dotstrings.load("/path/to/file.strings")

for entry in entries:
    print("Key: " + entry.key)
    print("Value: " + entry.value)
    print("Comments: " + "\n".join(entry.comments))

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dotstrings-1.1.3.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

dotstrings-1.1.3-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file dotstrings-1.1.3.tar.gz.

File metadata

  • Download URL: dotstrings-1.1.3.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.15 Darwin/22.1.0

File hashes

Hashes for dotstrings-1.1.3.tar.gz
Algorithm Hash digest
SHA256 23c9e35181133fe631cadb90db6021c01e6216caa536f2dbdb82bbfe1845a9e2
MD5 d2dc956469e9e25bac4a0a72b1eb7fc9
BLAKE2b-256 8017ab952e468f33b6a48c7d21ab49fe9870423d6bdf37da30415a6f81ead3d1

See more details on using hashes here.

File details

Details for the file dotstrings-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: dotstrings-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.15 Darwin/22.1.0

File hashes

Hashes for dotstrings-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dca3c3aeb020246d0b1fd9117fc410954f8bfc8b19fed4fc81e77e20529c8920
MD5 859ffbbafd811876b6979e135b067256
BLAKE2b-256 0f720f61cef1b504dcd725e49f08702a77f856f87ddb0119d084bd78b9a97095

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page