# Replace docstring for signatures like AbstractMatrix{\<:Real}

**URL:** <https://discourse.julialang.org/t/replace-docstring-for-signatures-like-abstractmatrix-real/12541>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 20, 2018, 3:45pm UTC](https://discourse.julialang.org/t/replace-docstring-for-signatures-like-abstractmatrix-real/12541 "2018-07-20T15:45:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger-luo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roger-luo/32/3399_2.png) [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Post date:** [July 20, 2018, 3:45pm UTC](https://discourse.julialang.org/t/replace-docstring-for-signatures-like-abstractmatrix-real/12541/1 "2018-07-20T15:45:05Z")

</div>

I would like to replace doc strings for i18n purpose. [GitHub - Roger-luo/Localize.jl: Utils for localization of Julia documents](https://github.com/Roger-luo/Localize.jl)

However, the [`replace!`](https://github.com/Roger-luo/Localize.jl/blob/master/src/docsys.jl#L53) function I used works for most of the functions, but I cannot replace signatures like

```julia
sin(AbstractMatrix{<:Real})

```

I found that this is because the doc system use `IdDict`, and a new defined `AbstractMatrix{<:Real}` does not have the same `objectid` comparing to the original. This make me fail to find the original doctoring and replace it, any suggestions on how to make this work?
