2
0

translate.conf.xml 858 B

12345678910111213141516171819202122232425262728
  1. <include>
  2. <configuration name="translate.conf" description="Number Translation Rules">
  3. <profiles>
  4. <profile name="US">
  5. <rule regex="^\+(\d+)$" replace="$1"/>
  6. <rule regex="^(1[2-9]\d{2}[2-9]\d{6})$" replace="$1"/>
  7. <rule regex="^([2-9]\d{2}[2-9]\d{6})$" replace="1$1"/>
  8. <rule regex="^([2-9]\d{6})$" replace="1${areacode}$1"/>
  9. <rule regex="^011(\d+)$" replace="$1"/>
  10. </profile>
  11. <profile name="GB">
  12. <rule regex="^\+(\d+)$" replace="$1"/>
  13. <rule regex="^$" replace="$1"/>
  14. </profile>
  15. <profile name="HK">
  16. <rule regex="\+(\d+)$" replace="$1"/>
  17. <rule regex="^(852\d{8})$" replace="$1"/>
  18. <rule regex="^(\d{8})$" replace="852$1"/>
  19. </profile>
  20. </profiles>
  21. <!--
  22. <profile name="">
  23. <rule regex="^\+(\d+)$" replace="$1"/>
  24. <rule regex="^$" replace="$1"/>
  25. </profile>
  26. -->
  27. </configuration>
  28. </include>