# Suggestion: $translate function

**URL:** https://community.mp3tag.de/t/suggestion-translate-function/6313
**Category:** General Discussion
**Created:** [February 21, 2008, 5:37pm UTC](https://community.mp3tag.de/t/suggestion-translate-function/6313 "2008-02-21T17:37:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [February 21, 2008, 5:37pm UTC](https://community.mp3tag.de/t/suggestion-translate-function/6313/1 "2008-02-21T17:37:30Z")

</div>

It would be great to have a scripting function to help in converting alphabets for e.g. [/t/6298/1](https://community.mp3tag.de/t/6298/1) and my previous queries likewise.

e.g.

Command: $translate(string,from,to)  
Result: **string** having each character found in **from** either replaced by the character at the **from** -corresponding position in **to** , or if that position is past the end of **to** , deleted.  
Example: $translate(Dónde,áéíóúüñÁÉÍÓÚÑÜ,aeiouunAEIOUNU) returns Donde  
This example removes the accents from characters used in Spanish.

If there's a better solution, please do say.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [February 21, 2008, 5:46pm UTC](https://community.mp3tag.de/t/suggestion-translate-function/6313/2 "2008-02-21T17:46:43Z")

</div>

$replace(Dónde,á,a,é,e,í,i,ó,o)
