| Gebäudeadresse: | 427-429 Broadway, New York NY 10013 |
| Postleitzahl: | 10013 |
| Nachbarschaft: | Soho |
| Stadtbezirk: | Manhattan |
| Stockwerke: | 5 |
| Year Built: | 1910 |
| Building Class: | C |
| Block & lot: | 00231-0008 |
To translate HTML content while keeping the HTML tags intact, you should use translation tools or services that specifically support HTML preservation. Here are the best practices and options:
### 1. **Use Translation Tools with HTML Support**
Many modern translation platforms and APIs (such as Google Translate, Azure Translator, and Lokalise) allow you to translate text while preserving HTML tags. When using these tools:
- Select the **HTML format option** in the advanced settings.
- This ensures that only the text within the tags is translated, and the tags themselves remain unchanged.
### 2. **Manual Extraction and Reinsertion**
If your tool does not support HTML preservation:
- Extract all translatable text from the HTML.
- Translate the extracted text.
- Reinsert the translated text back into the original HTML structure.
### 3. **Use Glossaries and Style Guides**
- Provide a glossary to ensure terminology consistency.
- Use a style guide to maintain tone and phrasing across translations.
### 4. **Best Practices for HTML Translation**
- **Do not translate HTML tags** (e.g., `
`, `
`, `
`).
- **Translate only the text content** within the tags.
- **Preserve all attributes** (e.g., `src`, `href`, `alt`).
### Example Prompt for Translation Tools
"Translate the following HTML content into German, ensuring all tags remain intact. Refer to the attached glossary for terminology consistency."
### Example HTML Translation
**Original:**
```html
The building located at 427-429 Broadway in the SoHo neighborhood of Manhattan is historically known as the A. J. Dittenhofer Warehouse.
```
**Translated (German, tags intact):**
```html
Das Gebäude am 427-429 Broadway im SoHo-Viertel von Manhattan ist historisch als das A. J. Dittenhofer Warehouse bekannt.
```
### Additional Resources
- **POEditor**: Use the Format > HTML option in Advanced Settings.
- **Lokalise**: Supports HTML translation with glossaries and style guides.
- **Microsoft and Google Translation APIs**: Offer HTML format options to preserve tags.
By following these practices, you can ensure that your translated HTML content maintains its original structure and formatting.